matching an objects position to a moving platform [solved]

For questions about using Classic.

Post » Sun May 01, 2011 2:15 am

Let's say I have a character on the outside of a moving train-- he jumps up and the train goes hurdling on beneath him-- yes that is easy!

Now I have the character go inside the train-- he jumps and he stays with the train--

that's a bit more tricky, but I think I know what to do--

While the character is registered as being inside the train, I will retrieve the trains various vectors of motion and whatnot, and add them into the characters own various vectors of motion so that when he jumps up he stays in the same place. If that doesn't work I am sure I will figure out some other way of doing it...

The reason I have started this topic is because I want to ask if there is already a built-in button to press that will do all this work for me! It seems like maybe there might be, but I don't know! :lol:
B
5
S
1
G
2
Posts: 99
Reputation: 1,575

Post » Mon May 02, 2011 1:13 am

Actually the way I described worked perfectly and it was less work than I thought it would be! Who knew? :oops:

http://dl.dropbox.com/u/19590484/game10tower.exe
B
5
S
1
G
2
Posts: 99
Reputation: 1,575

Post » Mon May 02, 2011 12:01 pm

That looks pretty cool, glad to hear that it works now too. I think the platform behaviour automatically does that with moving objects as well, but the method you used probably works better for what you want it to do.
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 8 guests