move actor through moving platform from one side only
![iNabarawy](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
hello there every one , I'm a newbie here at game salad i spent the last couple of month learning objective-c and working with cocos2d engine for building games , while that is going terribly slow ! i found game salad and i loved working with it , while i don't like the restrictions when it comes to tweaking the x-code project anyway i'll get to the point
I'm trying to move an actor throw a moving platform imagine the moving platform in doodle jump but i want my actor to stay on the platform and move with it ,
i managed to get the actor throw the platform only when it's movable property is set to false , when i check it to true the actor moves throw it and then fall back throw it again !
what am i missing here?
would some one help?
I'm trying to move an actor throw a moving platform imagine the moving platform in doodle jump but i want my actor to stay on the platform and move with it ,
i managed to get the actor throw the platform only when it's movable property is set to false , when i check it to true the actor moves throw it and then fall back throw it again !
what am i missing here?
would some one help?
Comments
Ace
thanks a million by the way but imagine the green,red &blue platforms moving right and left in a specific part of the screen why wouldn't the same technique work?! i've been trying for hours now !
If player.x.position is greater than self.position x (plus some offset)
Then collide with player X
Otherwise, nothing.
So, in a side-scrolling game, the player could walk through that door, but not return.
You could send your project to info@instantmashgames.com if you still get stuck at it and I'll take a look
Ace
Ace
i don't know how but i started a new project from scratch and everything worked as it should be !
thanks folks , i appreciate your help
while i have you hear , what's the best way to keep a platform moving at a constant speed between the two edges of the screen without it being affected by the gravity of friction with the actor jumping on it?
i solved the affection by gravity part i did a constrain attribute and constrained the position.y to the y i want on each platform but what about the other part?
Then do the opposite, so if self.x = (right hand x) interpolate to left x
Ace
i hope i wasn't much trouble
Ace