Abstract
Combine a number of backgrounds to create a parallax effect. Have a player object that can move up and down. If the player object isn’t being moved, slowly move it toward the middle. When moving up or down, rotate the sprite in the direction it’s moving. Base the parallax on the player’s y position.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2017 Ben Tyers
About this chapter
Cite this chapter
Tyers, B. (2017). Parallax Background. In: GameMaker: Studio 100 Programming Challenges. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2644-5_36
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2644-5_36
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2643-8
Online ISBN: 978-1-4842-2644-5
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books