Hi everyone I'm new to the construct and I want to know how I can make an object change its speed every time I touch something else
For example: if stars fall from the sky and then I touch the player with any button the game will be caught only the stars will fall faster
I would be happy if you would help me
I think you can put 2 instance variables name:
- HyperSpeed: 3x
- NormalSpeed: 1x
When touching something, you can set your object's speed to HyperSpeed.
Then it will decrease until it equals NormalSpeed and keeps going.
Develop games in your browser. Powerful, performant & highly capable.
No, but I want as if every time you press the button it's as if you're going through a stage and the speed will increase every time you go through a stage
Maybe set the time scale for the object you want to go faster is what you mean.