-
vanishing counters
hi all
i cannot understand why counters (the blue horizontal bars which appear above the yellow actives specifically) sometimes vanish in this simple game i have made
do you have any ideas?
i have uploaded the mfa here
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=215305&#Post215 305
best regards
l2s
-
Re: vanishing counters
I can't look at the mfa right now, but the common mistake is having "display as background" set in the properties of the counter.
-
Re: vanishing counters
already checked that but thank you !
-
Re: vanishing counters
Are you sure you uploaded the correct file?
I don't see any blue horizontal bars
-
Re: vanishing counters
run the project and hit space a bunch of times, this will spawn red blocks
when the red blocks collide they spawn yellow blocks (and the yellow blocks have blue health bars)
thanks for looking
-
Re: vanishing counters
Ok I'm still not seeing it, the file you uploaded has 3 frames and the last 2 only have an active and no events. The first frame has some actives but no events for pressing the spacebar?
-
Re: vanishing counters
sorry i didn't double check the first time gerald you were 100% correct
i have updated the file :
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=215305&#Post215 305
-
Re: vanishing counters
so can anyone please help me :S
-
Re: vanishing counters
This is an MMF instancing problem. The counters are still there, but jumps to other actives. You would need to run a fastloop to nail the counters to the specific actives.
That`s a bit impossible though because counters have no alterable values to spread. So i would suggest to use Active System Boxes instead counters. They can be set up to act like your bar here.
The way to go then is as follow:
Spread Value 0 in Alterable Value in ASB
Spread Value 0 in Alterable Value in Active
Always start loop "nail" nubmer of object times
On Loop "nail"
+Alt Val A of ASB is equal Loopindex "nail"
+Alt Val A of Active is equal Loopindex "nail"
-> set position of ASB to position of Active ...