Actor needs to stick to another actor

damir0000damir0000 Member, BASIC Posts: 8

Hi everyone!

I'm new to GS but have some experience with making Flash games back in days so I'm not a total rookie.

2 actors on the scene:
Actor 1 is a platform that bounces off the walls (top,bottom,left and right) be getting initial random speed and direction.
Actor 2 is a character supposed to "ride on" the platform and continue motion along platform's way/path.

I achieved that by creating table where platform's X/Y positions and X/Y Linear Velocities are written to constantly whenever
Actor 2 lands on it. Once landed, Actor 2 is supposed to start reading X/Y positions and X/Y Linear Velocities of the platform and tune up its own X/Y position and X/Y Linear Velocity accordingly.
I suppose that's the way to make it sit on the platform as long as needed.
So far so good.
Bu here's a problem...
Whenever the platform hits the wall and bounces off, Actor 2 no longer sits on it and continues to move as if there was no bounce off! I need to say that even though the platform keeps updating table with position and linear velocity, Actor 2 ignores it.
It sounds like the platform stops feeding table with data after collision, however, that's not the case - debugger proves opposite.

I'm enclosing the file so any help would be appreciated.

Cheers!

Sign In or Register to comment.