tomorrow I'm going to do the collision of the enemies and the player , and watch the tutorial to learn it "enemies"
Tuesday, May 23, 2017
Gamemaker Day 46
Today I learned how to make the enemies bounce back if they hit a wall, it will get destroy. What i did : first i create some variable for the enemies, then I set hsp and vsp = 0. so that i can add up the hsp and vsp later on the step event. I basically use the same the code that I wrote on the previous day. so that the enemies won't get stuck the wall or fell out of the map, but I added one line of code that make my enemies bounce back if they hit the wall. I use "dir*=-1" this mean if goes the opposites direction of what my enemies was going. also I found a sprites for my enemies object , then I resize it again.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment