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
7
S
1
Posts: 15
Reputation: 605

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
7
S
1
Posts: 39
Reputation: 803

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
Image
B
98
S
22
G
16
Posts: 1,338
Reputation: 21,202


Return to How do I....?

Who is online

Users browsing this forum: jhjconstruct, Tuiii and 7 guests