• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Help on speed[SOLVED]

A

awsome129

Guest
So in my space game I have been making, the speed boost system is for some reason not working. I have it on a alarm and when the alarm ends, text is drawn notifying the player of the speed boost option[working], and then the player presses shift which should activate the speed boost for about 5 seconds[not working]. For some reason the warp speed is drawing on screen but noting happens when shift is pressed.
PLEASE HELP!!!


Here is all my gmz if needed:
https://www.mediafire.com/?4ij2lb8otyonnqn
 
P

PlayLight

Guest
So in my space game I have been making, the speed boost system is for some reason not working. I have it on a alarm and when the alarm ends, text is drawn notifying the player of the speed boost option[working], and then the player presses shift which should activate the speed boost for about 5 seconds[not working]. For some reason the warp speed is drawing on screen but noting happens when shift is pressed.
PLEASE HELP!!!


Here is all my gmz if needed:
https://www.mediafire.com/?4ij2lb8otyonnqn
To address your current question:
In the step event of obj_player, you are setting your speed value to 6 under the condition that an instance of obj_mouseclick exists, else a value of 0.
You need to factor in the speedboost value, if the player is holding down shift, otherwise the obj_player speed will always be set to either 6 or 0 every step.
 
Top