How do I Create Sprite on A Moving Platform

Get help using Construct 2

Post » Wed Jun 15, 2016 11:21 pm

Message: Evsun can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Helo sir, i start to hit a wall again now. I am now making a game like vertical runner. But what i want to add here is a coins score.
First may you can look at my layout below.
Image

So, i want a coin is created in every 5 second and the create on random X axis above the platform (the board that move upwards). Every coin after created, will move upwards as the platform move. So in the end, the coin position is on the platform.

But, problem start here, i don't know what happen every i create the coin at random X axis, the coin isn't move to upwards, even i have set the position of coin towards platform

I don't know what happen, please sir help me.

This is my capx in case you need it : https://goo.gl/H2NxwZ
B
6
S
1
G
1
Posts: 19
Reputation: 888

Post » Thu Jun 16, 2016 12:50 am

Hi, I'm not exactly sure what you mean. But your coin has a bullet behaviour applied to it, so when it spawns it starts moving to the right. So maybe remove that bullet behaviour and instead put a pin behaviour on the coin. Then you can spawn the coins and they will hang in the air - then test for a collision - if the coin is overlapping the platform pin it to the platform - it will then move up with the platform.
B
67
S
25
G
4
Posts: 212
Reputation: 7,084


Return to How do I....?

Who is online

Users browsing this forum: FacuLNF and 12 guests