Vous êtes sur la page 1sur 7

CREATING A PLATFORM GAME

1.

Import the following sprites and name them


respectively.

2.

Click Create Object. Change its name to Wall,


change its sprite to Wall and click the Solid
check box then click Ok button when youre
done.

3.

4.

Click Create Object. Change its name to Player


1, change its sprite to down and click the Solid
check box.

5.

Click Control tab, then drag the Comment icon


to the Actions column.

6.

Change the comment into Air then click Ok


button when youre done.

7.

Drag the Check Empty icon into the Actions


column.

8.

Change Y into 1 then click the Relative check


box.

Click Add Event, click Step then choose Step.

9.

Click the Move tab then drag the Set Gravity


icon to the Actions column.

12. Click the Move tab then drag the set gravity to
the Actions column.

10. Change its direction into 270 and its gravity to 1.


Click Ok when youre done.

13. Change its direction into 270. Click Ok when


youre done.

11. Click the Control tab then drag the Else icon to
the Actions column.

14. Click the Control tab then drag the Comment


icon to the Actions column.

15. Change its comment into Limit then click Ok


button.

18. Drag the Set Variable icon into the Actions


column.

19. Change its variable to vspeed and its value into


12. Click Ok when youre done.
16. Drag the Test Variable icon into the Actions
column.

17. Change its variable into vspeed, change its value


into 12 and change its operation into larger than.
Click Ok when you are done.

20. Click Add Event click Collision then choose


Wall.

21. Click the Move tab and drag the Move to


Contact icon to the Actions column.

25. Click Add Event then click Keyboard then


choose letter A.

22. Change direction to direction and maximum to


12. Click Ok when youre done.
26. Click Control tab and drag the Check Empty
icon to the Actions column.

23. Drag the Speed Vertical icon to the Actions


column.

27. Change x to -4 and click the Relative box. Click


Ok when youre done.

24. Click Ok to close the Speed Vertical window.

28. Click the Move tab and drag the Jump to


Position icon to the Actions column.

29. Change x to -4 and click the Relative box. Click


Ok when youre done.

32. Click Add Event, click Keyboard and choose


letter D.

33. Click Control tab and drag the Check Empty


icon to the Actions column.

30. Click the Main 1 tab and drag the Change Sprite
icon the Actions Column.

34. Change x to 4 and click the Relative box. Click


Ok when youre done.

31. Change the sprite into Left. Click Ok when done.

35. Click the Move tab and drag the Jump to


Position icon to the Actions column.

36. Change x to 4 and click the Relative box. Click


Ok when youre done.

39. Click Add Event, click Key Press the choose


letter W.

40. Click Control tab then drag the Check Collision


icon to the Actions column.

37. Click the Main 1 tab and drag the Change Sprite
icon the Actions Column.
41. Change y to 1and click the Relative check box.
Click Ok when youre done.

42. Drag the Start Block to the Actions column.


38. Change the sprite to Right. Click Ok when done.

43. Click the Move tab and drag the Speed Vertical
icon the Actions column.

47. Click the Create a Room.

48. Copy the format below.

44. Change the vert. speed to -10. Click Ok when


youre done.

49. Click Save and name it Platform Game.

50. Play your game. Congratulations! You had just


created your first platform game.

45. Click the Control then drag the End Block to the
Actions column.

46. Click Ok to close the Player 1 window.

Vous aimerez peut-être aussi