Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: heavygunner on June 06, 2020, 03:25:47 PM
-
Hello !
Prototyping a Moto bike game. I managed to do back / front flip by action rotate 180 angles per second.
I want to get how many times player perform backflip and front flip on jump?
I couldn't figure out .
Thanks
-
Make an int variable, and when the flip is being performed, use the action Int Add (+1).
-
Make an int variable, and when the flip is being performed, use the action Int Add (+1).
I stuck with getting Flips.
I tried if player's rotation on X is below or higher than 359, consider flips. but, not giving any results. Value shown on Get Rotation action and Inspector are totally different
-
Hi.
You could maybe use some triggers. if you are rotation the root you might need to do some trick.
basically have 1 parent. then have 1 trigger that will rotate.
Then some other triggers that will count the rotations.
The one rotation should be rotation with the bike, if you can't do it directly on the bike then use get/set rotation (get from bike / set to collider)
I think this system can even do more that only registering flips.