Make an actor rotate yet not be affected by gravity?
homelesswombat
Member Posts: 73
I unchecked the "movable" attribute which makes it unaffected by gravity, but apparently not being movable means it also has fixed rotation.
Anyone know a way to do this? I know it's possible to create an invisible actor that "holds up" the rotating one, but that is a level building nightmare. That solution also doesn't work if the rotating actor is bigger than the scene.
Anyone know a way to do this? I know it's possible to create an invisible actor that "holds up" the rotating one, but that is a level building nightmare. That solution also doesn't work if the rotating actor is bigger than the scene.
Comments
Actor: Platform
1) Create two new variables self.homeX and self.homeY. Use Change Variable so that the latter variables are set to the current x,y position of the actor. This will make the actor "know" where it spawned.
2) Set the Density really high, like 1000.
3) Create a Timer
Every .1 seconds
Move to homeX, homeY
Speed: 30
What's fun is I found that if I use Accelerate Toward homeX, homeY, set the timer to every 1-2 seconds and lower the density, it makes really nice "fall away" platforms that return to their original position.
These kinds of platforms can also spin in place and do all sorts of things you can't with the "Moveable" attribute unchecked.
(mainly commenting to add tags)