cat physics type game tip
Dethe
Member Posts: 172
hey guys I have figured out how to make a game like cat physics and most of the script is in the ball so it goes like this:
Rule
If attribute "move" = true
change attribute "motion linear velocity X" to "cos(game.arrows rotation)*600"
change attribute "motion linear velocity Y" to "sin(game.arrows rotation)*600"
that makes a smooth bounce off the arrow into the arrows direction and you can change what it is multiplied by to make it bounce lower, higher or slower and faster.
Hope this helps!
Rule
If attribute "move" = true
change attribute "motion linear velocity X" to "cos(game.arrows rotation)*600"
change attribute "motion linear velocity Y" to "sin(game.arrows rotation)*600"
that makes a smooth bounce off the arrow into the arrows direction and you can change what it is multiplied by to make it bounce lower, higher or slower and faster.
Hope this helps!
Comments
DL