Collectable objects (coins etc)

Get help using Construct 2

Post » Wed Feb 15, 2012 7:05 pm

Last couple of days ive been trying to get to grips with construct2 (free edition) and learn how to do various things by reading tutorials and viewing samples but I cant figure out how you make an object collectable like coins in mario or rings in sonic.

Can someone show me how to do this please?

I cant find a tutorial on how to do it.
B
3
Posts: 7
Reputation: 339

Post » Wed Feb 15, 2012 7:45 pm

If you haven't done so, take a look at the basic tutorial here:
http://www.scirra.com/tutorials/37/beginners-guide-to-construct-2

This goes over the basics of what you'll need for most basic games.
To answer your question though, just set up an event for when your character's sprite is overlapping the coin sprite. You can then add to whatever counter you've set up, and have the coin destroyed.
B
6
S
1
Posts: 37
Reputation: 774

Post » Thu Feb 16, 2012 2:42 pm

Here's a simple example of what Fistmaker describes:

Gold_Example.capx
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Thu Feb 16, 2012 3:10 pm

The logic behind collecting thinks is:

> Player is overlapping -> Coin Families >> Player -> Variable "Coins" add 1;
>> Coin -> Destroy;
ImageImageImageImageImageImage
B
92
S
19
G
12
Posts: 1,192
Reputation: 18,276


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, Radulepy and 6 guests