I’m making (trying to make) a 2D runner where the player continues moving right, in which the levels are not randomly generated, but rather are pre-designed. In other words, it is like an infinite runner, but it has a defined end point, and the level isn’t randomly generated.
How the heck do I do this? I’m switching from Game Maker (because Open Source) and I’m struggling a bit.
To have the player move continuously right, use the condition: Check if x is visible. Set the object to the player character. Have the action be: Add to x a force. Make object player again, and the force whatever you’d like.
To make the camera follow your player, yes, as suggested, just: Use the center camer on action, and select your character as the object.
You can add a new event with no condition and a platformer behavior, and just add a force on the character to make it go right. And to have a definite end point, like say, some 80 kilometers or something, just add an invisible sprite. Check if the player collides with the sprite, and just direct him/her to a new scene.
P.S. I’m a noobie