T
Thunder025
Guest
Very new to GMS as a whole, just completed the DnD breakout tutorial. Decided I'd stick with that game a little longer to practice some stuff, and worked on adding new powerups.
The one I'm currently working on is supposed to make the bat move slightly upwards in a smooth motion, then return back downwards (a little boost that, when hitting the ball that way, will speed up the ball). My current issue is I can't figure out how to make the bat move in that way - I tried using a while loop to make it repeatedly jump to a different y location until y is less than a certain number, but every time the loop is entered the game freezes and I have to use task manager to kill it.
I also tried making it follow a path, going in a straight line up, then a second path command to make it go back down. This sort of works - for some reason, the bat teleports to the top end of the path, but will move smoothly back down like it's supposed to.
I also have an issue where the button can be spammed and the bat will keep going up as long as it is spammed, despite me setting a check to see if it's already busy following a path so it can't be reactivated.
Any ideas on what I'm doing wrong?
The one I'm currently working on is supposed to make the bat move slightly upwards in a smooth motion, then return back downwards (a little boost that, when hitting the ball that way, will speed up the ball). My current issue is I can't figure out how to make the bat move in that way - I tried using a while loop to make it repeatedly jump to a different y location until y is less than a certain number, but every time the loop is entered the game freezes and I have to use task manager to kill it.
I also tried making it follow a path, going in a straight line up, then a second path command to make it go back down. This sort of works - for some reason, the bat teleports to the top end of the path, but will move smoothly back down like it's supposed to.
I also have an issue where the button can be spammed and the bat will keep going up as long as it is spammed, despite me setting a check to see if it's already busy following a path so it can't be reactivated.
Any ideas on what I'm doing wrong?