Coins

Discussion and feedback on Construct 2

Post » Sun Jan 27, 2013 9:31 pm

Hey Guys :]

So I'm new with this Program an my English is nt good, too!
But i hope you'll understand my Question... ;]

I've made a little game...
Now I want to get a coin...

I should alk over it and it should disapear.
You can find a screenshot under this...

http://www.clipular.com/c?1714767=Fq8ng_FJ8AHHAxEh8CiQalukkBk&f=b14a60027e7fbd196e1529dc671806dd

This little coin should be takeable...and should disapear if my Character run over it..I hope you can help me^^

Greetings from Germany!
DjembZz/Marius
B
1
Posts: 5
Reputation: 285

Post » Sun Jan 27, 2013 11:42 pm

You want to destroy the coin object. Then, if you have a counter for the coins, add 1 to it.
B
106
S
35
G
37
Posts: 798
Reputation: 25,215

Post » Mon Jan 28, 2013 1:44 am

Player On Collision with Coin
->Destroy Coin
->Add 1 to "Player_Coins" (that's a variable)
B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Mon Jan 28, 2013 4:43 pm

Okay...But how can i Do this?
Could YOU give me a little tutorial...?

I'm new with this program
B
1
Posts: 5
Reputation: 285

Post » Tue Jan 29, 2013 6:10 am

I would recommend going through the tutorials for For Platformers. Going through the tutorials will teach you all about these basic actions and events.
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418

Post » Tue Jan 29, 2013 8:36 pm

if you are in a hurry do this:

1- create a global variable named TOTALCOINS
2- set this event:

PLAYER collides with COIN >> ADD 1 to TOTALCOINS, DESTROY COIN

You can get the number of coins collected from the GlobalVariable
Image
B
42
S
11
G
5
Posts: 269
Reputation: 10,880

Post » Tue Jan 29, 2013 8:55 pm

Thank You so much :]
It's done...

Next Question:
How can i make a counter? I mean it should be showed how many Coins I've found...

Would be cool if i could get an answer like this one from danuyos ;)
Thank again!
B
1
Posts: 5
Reputation: 285

Post » Wed Jan 30, 2013 2:36 am

um danuyos gave you the solution to that too...

ADD 1 to TOTALCOINS ;)
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Post » Wed Jan 30, 2013 10:58 am

I am going to be real boring, lame & almost trollish and say" shouldn't this thread be in the 'how do I? ' section??

...wanna be a good game designer? Try to put things in the right spot....:-) :-) :-)Just saying
When in doubt..or you are lost in a Zombie apocalypse or someone is giving you a hard time..Remember one thing..... Read the Construct 2 Manual..it will save your life.:)
B
29
S
11
G
8
Posts: 313
Reputation: 7,335

Post » Wed Jan 30, 2013 10:59 am

We all wanna get a coin though don't we? :)
When in doubt..or you are lost in a Zombie apocalypse or someone is giving you a hard time..Remember one thing..... Read the Construct 2 Manual..it will save your life.:)
B
29
S
11
G
8
Posts: 313
Reputation: 7,335

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Televangelist, TRMG and 5 guests