get bonus object when score is reached

Get help using Construct 2

Post » Wed Jun 13, 2012 9:23 am

hello all,

Well, thank you in advance for kindly help. I am stuck with something. Any idea where i can find a tutorial or example about this:

When a score reach 100 points by example, the game show me a mini store/section where i can click on a object. If i have enough point, this object is upgraded on the player.

I tried to create it but really doesnt work at all here so if someone can help me with something, it would be really appreciated !!!

thanks again
odesign2012-06-13 09:25:22
B
11
G
1
Posts: 41
Reputation: 1,107

Post » Wed Jun 13, 2012 10:45 am

Do a greater or equal check for the amount needed with a variable, whether it's a global or instance variable doesn't matter I believe usually.

Don't forget to subtract the points, or the player can abuse that oversight.LaDestitute2012-06-13 10:45:44
Zelda Gamekit (my project)

Example capxs I have made:
Zelda-Style Inventory
Zelda Hearts System

The unwritten "How do I" capx etiquette! Nearly always provide a capx of the problem you have, and try to isolate the problem and/or no capx above 10 MB. :)
B
38
S
19
G
26
Posts: 438
Reputation: 16,581

Post » Thu Jun 14, 2012 5:42 am

Thank you for your directive. I was thinking something similar but i dont know why it doesnt work here. Is it possible to see a capx to understand how its really working with that logic ?

I really need help if possible and a .capx will be easier to understand. I am willing to pay to understand this logic so if its motivate more, then just tell me but i really need help :)

Here the logic i try to create:

http://odesigncommunication.com/issue.jpgodesign2012-06-14 05:42:56
B
11
G
1
Posts: 41
Reputation: 1,107

Post » Thu Jun 14, 2012 7:47 am

It's soooo easy to me.

The important thing is you must create a global variable for score, besides 2 options on menu screen, you may create event compare to global variable, if the current score is less than 49, it will disable click, otherwise if is greater or equal than 50, it will enable click to purchase weapon, it does same logic to other weapons and add action to substract 50 to global score after of purchasing a weapon, also you make another event to attach new weapon, its just like to change frame, add image point or other method.

B
96
S
25
G
20
Posts: 3,055
Reputation: 22,646

Post » Fri Jun 15, 2012 6:34 am

Thanks Joannesalfa and ladestitude, your help have been helpful !
B
11
G
1
Posts: 41
Reputation: 1,107


Return to How do I....?

Who is online

Users browsing this forum: ETgirl79 and 14 guests