Jump to content
A 2021 backup has been restored. Forums are closed and work in progress. Join our Discord server for more updates! ×
SoaH City Message Board

Check Point Help (Game Maker)


Mr.S

Recommended Posts

Use global variables: Everytime you start the game or finish an act, you should set a global.check_point variable to false. So, when Sonic collides within a check point, set global.check_point to true, and then store the X and Y positions of the check point on global.check_point_x and global.check_point_y.

After that, when the level is restarted, you've gotta check if global.check_point is true. If it is, create the Sonic object at global.check_point_x / global.check_point_y instead of the common start place.

Link to comment
Share on other sites

Use global variables: Everytime you start the game or finish an act, you should set a global.check_point variable to false. So, when Sonic collides within a check point, set global.check_point to true, and then store the X and Y positions of the check point on global.check_point_x and global.check_point_y.

After that, when the level is restarted, you've gotta check if global.check_point is true. If it is, create the Sonic object at global.check_point_x / global.check_point_y instead of the common start place.

Thanks just one more thing how do i store the X and Y positions ?

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...