The Daily Click ::. Forums ::. Klik Coding Help ::. A different counter question
 

Post Reply  Post Oekaki 
 

Posted By Message

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
23rd February, 2006 at 20:21:45 -

Okay, here is another one of those "but this should work!!!!" questions that I'm sure you guys get like 10 times when making your games. Here it is-

I have 3 counters, set as animations, that are supposed to show different pictures depending on what items you have like this:

<Always Set counter "ITEM1"'s value to (Global array object, 1)>

Where the counter's values are like so- (1) = empty box, (2) = health potion, (3) = speed potion

However, (and I've tinkered the crap outta' this too) it NEVER works correctly! It seems so friggin' simple, but I get the empty box all the time- no matter what value I set the global array object's "1" dimensional slot to. I've even set a string up that always displays the value of the global array object "1" and the values are CORRECT!! Even if the values change on the same frame it doesn't work.

Why, oh why does this not work? I also have a similar "life bar" counter that is always set to display another value of the same global array object and that works just fine.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
23rd February, 2006 at 20:34:22 -

Check the Values of your counter - a counter set up as an animation will distribute its frames over the complete range that it's given. If you provided it with three frames and it had a minimum value of 0 and a maximum of 100, then it would show frame 1 from 0-33, frame 2 from 34-66 and frame 3 from 67-100. The total range of the counter needs to match up with the number of frames that you've given it.

 
http://www.davidn.co.nr - Games, music, living in America

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
24th February, 2006 at 02:47:35 -

Holy crap! Wong, you're my hero! Thanks buddy

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!
   

Post Reply



 



Advertisement

Worth A Click