HUD problem

Get help using Construct 2

Post » Mon Jul 07, 2014 1:37 pm

Hi, I need some help with the HUD.

the numbers of score and health are showing in the HUD. But the numbers arn't changing when I collide with the yellow and grey balloon.

yellow ballon adds 1 point. Grey balloon substracts 1 health.
Last edited by meman on Mon Jul 07, 2014 3:11 pm, edited 1 time in total.
B
5
Posts: 43
Reputation: 403

Post » Mon Jul 07, 2014 2:32 pm

The reason the score and health do not change is because of the order your events are setup . You destroy the balloons in early events and then much later check for another collision event to change your variables , well these events never trigger because of the earlier events that destroy the balloons. Put your actions that change the health and score variables in the earlier events that check for collision and all will work fine . You should also use families instead of all the repetition your doing with collision checking . You have over 100 events that could easily be managed with 20 and serve the same purpose . Perhaps reading the manual and doing some tutorials might provide some insight .
What I know would fill a Book , what I don't know would fill a Library
B
37
S
12
G
29
Posts: 331
Reputation: 16,499

Post » Mon Jul 07, 2014 2:49 pm

event:

collision

action:

add point to score

destroy
B
18
S
6
G
3
Posts: 197
Reputation: 4,129

Post » Mon Jul 07, 2014 3:10 pm

Thanks @granpa ! :) I made the changes and the HUD is working fine now. Thanks for the tip about families, I'm reading about it now.

Thanks @yonda, but it's working fine now :)
B
5
Posts: 43
Reputation: 403


Return to How do I....?

Who is online

Users browsing this forum: camtray, DevinMurray, Joannesalfa, Lancifer, marcoscodas, Yahoo [Bot] and 12 guests