BackUpAndDown said: I still haven't figured out how to use Interpolate. =P Could you give me an example of what the interpolate attribute and duration should be set to?
Do you have a copy of my book? I think that does a good job of explaining how to use Interpolate.
Here's a short explanation for what I think you're trying to create with this example...
tshirtbooth said: if your player is sinking that means you are using gravity. That is not going to work for you. you will need to use no gravity and then put accelerate down on everything you want to have gravity.
It would help so much to see what your doing to help better.
Hmm... I wasn't using gravity. I was already using Accelerate down.
Just checked it out. All you do to slow down the rotation platform is change the density. Change it to 30 and go from there. And the reason for the character sinking in the platform is because you have the gravity as acceleration, so even when its on the platform and colliding the accelerate is still overriding. To fix have a atrribute to check when the player is on platform to temporarily disable gravity. But as soon as your not touching it the gravitys back so you cant notice. That fixes it, i just checked.
JohnPapiomitis said: Just checked it out. All you do to slow down the rotation platform is change the density. Change it to 30 and go from there. And the reason for the character sinking in the platform is because you have the gravity as acceleration, so even when its on the platform and colliding the accelerate is still overriding. To fix have a atrribute to check when the player is on platform to temporarily disable gravity. But as soon as your not touching it the gravitys back so you cant notice. That fixes it, i just checked.
Hope i helped
Awesome, that solved both my problems perfectly. ^_^ (but once I removed the acc down I only had to set the density to 4.) Thanks for taking the time to help.
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