Specific place to random generate an object to another.

Get help using Construct 2

Post » Tue Nov 08, 2016 11:24 pm

Hey guys,

This is hard to explain in words, but I try. I have made an platform generate randomly upwards so the player will be able to climb up. This game is an infinite jumping game. I have made an score system in which there will be an item spawned on the random generated platforms and this works very well. The only problem I am facing is that this item, when it gets generated on the random platforms, it's placed on the down side of the platforms. That means that theplayer won't be able to collect this item when it's standing on the platform, since it cannot reach that item. See screenshot:

Image

Image

What can I do to make this item generate on the top of the platforms so it can be collected? :roll:
B
7
S
1
Posts: 7
Reputation: 391

Post » Wed Nov 09, 2016 12:46 am

Check the image point of the platform. It sounds like it may be on the bottom of the platform, that's why the item is generated on the bottom.

Also, your image's don't show.
B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Wed Nov 09, 2016 1:03 am

Actually, the place you spawn the item at is the problem.
Try to spawn the item at Platform.Y - 20,
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Wed Nov 09, 2016 3:07 am

Thank you so much! This fixed the problem.
B
7
S
1
Posts: 7
Reputation: 391


Return to How do I....?

Who is online

Users browsing this forum: David181 and 11 guests