playMaker

Author Topic: Rotate object per second not working  (Read 1200 times)

bsjm_games

  • Playmaker Newbie
  • *
  • Posts: 3
Rotate object per second not working
« on: January 04, 2022, 10:40:11 AM »
Basically I have a car with a boot, I have a FSM setup in the car prefab, so after 3 seconds of the game starting the boot should rotate and open over the span of 3 seconds. Basically I am changing the Z angle by 1 over a period of 3 seconds to give the illusion of an animation. However when I select "per second" on the Rotate component in the FSM it doesn't move the car boot at all!

I have used the "Every Frame" component but this doesn't suit well as when the framerate changes the 'animation' of the boot opening is glitchy etc.

So just so you understand what I am trying to achieve here. After 3 seconds of the game starting the boot should rotate on the Z axis by 1 each second for 3 seconds then stop.

Am I overcomplicating this and is there a much simpler way to achieve what I am trying to do!

Thanks for any help.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Rotate object per second not working
« Reply #1 on: January 04, 2022, 11:27:58 AM »
Hi.
Did you turn on "Every Frame" on the action?
Probably also enable Fixed Update.

Other solution is using Tween Action as you can use curves

bsjm_games

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Rotate object per second not working
« Reply #2 on: January 04, 2022, 04:00:45 PM »
Hi.
Did you turn on "Every Frame" on the action?
Probably also enable Fixed Update.

Other solution is using Tween Action as you can use curves

Hi there,

Yes I did but it doesn't move the boot at all! However if I check every frame on its own it moves smoothly but it depends on framerate... I don't want that, I want the boot to move -1 on z axis every second not every frame but when I select per second it doesn't move!