Creating a plateform
- First you will have to create a sprite and go inside of your sprite and hit edit sprit to create a block so that the human sprit can walk on.
- Open the objects folder for your person object. Click the a left keyboard event. Check if the Relative position (x=-4,y=0)is collision free.If it is then jump to that position.
- Then add a event for the right keyboard event. The coordinates should be(x=4,y=0) and it shold be relative instead.
- Next we should create gravity, we do this so that when our sprite person walks, he or she should fall from off the plateform. To do this we need to set the gravity. It needs to be 270 downwards and 0.5 value.
- We will set the vertical speed to be 0, and we will move it to contact the platform.
- We will change our Step event to only have gravity if the character is not on a platform.
- So now our sprite person can move left and right and gravity will cause it to fall if it steps off a platform. Next we need to move onto jumping.
- Next we will have to create a room. Name this room platform game.
- put your peron in the object.
- go to add event and click step, add if a postion colides, set the gravity, else and set the gravity again.
- Go to collision with the object(block),set the vertical speed, move to contact in direction 2.
- go to add event and click keyboard
, change sprite into your person - keyboard
, if a position is collision free, jump into given position. - Keyboard
, if there is a collision at a position, set the vertical speed. - keyboard
, if a position is collision free, jump to a given postion. - Keyboard press
, change sprite into the left sprite - Keyboard press
, change sprite into the right sprite.


