Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
How would I make a platforming game where the screen continuously scrolls upward so if your caught at the bottom you die. Also if a certain time is elapsed the screen scrolls upward a certain amount.
Develop games in your browser. Powerful, performant & highly capable.
Start of layout: -> Set scrollY to Player.Y Everytick -> Set scrollY to scrollY-scrollSpeed*dt Player.Y > scrollY + windowHeight/2 -> die
(In the last one, I consider that the Player has it's origin point at the bottom (at its feet) if it's in the middle, just do
Player.Y > scrollY + windowHeight/2 - Player.Height/2 -> die
You should put an invisable object in the centre of the screen, and set the game to scroll to it. Then have it move up the Y axis every x second/tick