How do I make an actor impervious to gravity?
Kamazar
Member Posts: 287
I have an an actor that I want to follow my ship, but it can't do that considering it's stuck to the ground. How do I make gravity ineffective toward it?
Comments
I'll use the above idea for a different type of enemy. For now, I'll just give the actor a high acceleration, and a high friction so that it doesn't accelerate on the ground at mach 5. Thx, guys.
Ship:
--Constrain its position to game attributes. The usual GPS stuff.
The Followers:
--Timer: Every .01 sec
----Change Attribute: self.PositionX = self.PositionX + (game.ShipX-self.Position.X)/4
----Change Attribute: self.PositionY = self.PositionY + (game.ShipY-self.Position.Y)/4
just tweak those constants as you see fit. I haven't tested with a lot of rules on other actors so it may or may not slow down. This is going into the wiki though.