Hi
I tried to make an object that when the player interact with it, it move forward a little bit, rotate 90 degrees then move back to it’s original location. I used timeline and it works first time but after just simply jump forward not rotate and jump back, sometimes even jumping back and forth.
I used this set up:
Everything on the UPDATE pin of a timeline gets called EVERY frame
Including this
I think you might want to connect that here
I connected those to the Finish pin as you said. It did solved the problem of jumping back and forth rapidly. I still had some problem jumping at location instead of moving slowly but I figured it out connecting the pin to the Play from start pin on Timeline instead of Play, now it works but when I click on it again while it’s moving it starts to slow down and stop. I tried to kind of disable the interact button while it’s moving or using variables but can’t get it right.
Ok. Move the entry pin from ‘play’ to ‘play from start’
Thank you it works fine. But when I click on it again while it’s moving, it starts to slow down and stop. I tried to kind of disable the interact button while it’s moving or using variables but can’t get it right. Also I have some problem with the rotation as well, I want it to rotate at 90 degrees every time it clicked (basically turns around every fourth times), but it only rotates when first clicked on it, after that just moving forth and back when it’s clicked.
I’ll come back in a little while…
So I’m assuming you want to extend the cube, rotate it, then retract. Without key presses interrupting.
This is how ( the timelines are 1 second )
Most of it is self explanatory, except the rotation problem.
If you’re having problems with rotation jumping when you go past 180, then you can’t work just the axis you’re interested in, you have to use a whole rotator. That’s because the code that manages rotators, accounts for this problem, that’s not possible with just a float.
Thank you so much It works perfectly
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.