Solid Rotation Platform
BackUpAndDown
Member Posts: 685
When I have "Movable" checked the platform slides away when my actor collides with it. When I have it unchecked it won't rotate...
Comments
Here's a short explanation for what I think you're trying to create with this example...
———————
|XXXXXXXXXX|
|XXXXXXXXXX| <--- platform
———————
The rotation angle is initially 0°
If you want it to rotate you can use Interpolate behavior.
EVEN THOUGH THE PLATFORM ACTOR NOT SET TO MOVABLE
self.rotation to 45°
Then... you can use rules to make it rock back and forth...
If self.rotation = 45°
then interpolate to 0°
If self.rotation = 0°
then interpolate to 45°
The platform will move without physics enabled. It won't matter, because the main actor should have physics and it should detect the collision.
Two last questions.
Why dose my character "sink" into the platform?
and is there a way I can slow down how quickly it rotates?
Heres a demo of what i'm working on. http://gamesalad.com/game/6457?GSCVersion=0.9.0&tokenUsername=BackUpAndDown&token=192a948359dfdf5c35ec782bed2864718b1aef7a3cf1fbd0641eb60d1884588d
If you stay standing on the platform the player will sink into it. I also want to the platform to not be so "spiny". I want it to have a bit of drag.
Hope i helped