Using collision events in GMS is generally not advised, you should try to do as much in the step event as you can. An understanding of Vectors can give you a very useful way to move instances around in GameMaker. Two vectors can be added together to combine their motion. In mathematics, a vector can be added to a position to get a new position. ![]() ![]() Move the code from o_player::o_door to o_player::step. Vector variables: In GameMaker, a motion vector is a speed (in pixels per step), combined with a direction. I don't know why your code wasn't working, but I found a solution! I fiddled with the project a bit, I understand the error you're getting, after the character goes through the first door, he can't go back even though in r_sworld there's the same type of doors, they all have collision masks, they all have variables.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |