Wednesday, May 31, 2017

Gamemaker Day 52

Today I learned how to make a moving platform. what i did : I mostly use the code that i had on enemy to apply on the moving platform , because the enemy's movement and the platform movement are very similar coding.  first I duplicate the wall sprite and recolor it, and then copy the create event code on the enemy object into my platform moving object. so that they can have the same variable.
then I copy the step event on the enemy object into my platform moving object , so that the platform would move the same as the enemy , when the moving platform hit the wall , it will goes opposite way. but i haven't finish the moving platform yet, the platform still needs more improvement.mainly today I remove everything in the room , to make it more difficult to play with.




the next day I'm going to continue watching the tutorial , and do more improvement for the moving platform.

No comments:

Post a Comment