The Daily Click ::. Forums ::. Klik Coding Help ::. strange glitch with counters and string text.
 

Post Reply  Post Oekaki 
 

Posted By Message

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
1st May, 2012 at 01/05/2012 00:51:10 -

so i have some text objects that have a few paragraphs in each of them, they are used for different types of weapons. there are some counters that are set to constantly cycle the paragraphs depending on what number the counter is on. that is all the counters do. the glitch im having is an odd one... when a weapon is generated it is supposed to grab the current text of current paragraph of the string text, but whats happening is its grabbing the next paragraph, so everything is 1 paragraph ahead, which is causing a weird glitch where if i pick up the first type of gun in a category, its glitched, doesnt have the right title or the right company. whats causing my strings to be one ahead? it says grab current text and its grabbing the next text in line. i have it set up so it shows what it should be, but when i pick up the weapon, it seems to be out of order. anyone have any idea? this is a huge problem for me right now.

 
[Game design makes my brain feel like its gonna explode.]

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
1st May, 2012 at 01/05/2012 01:44:06 -

My guess would be that you have some things using a 0-based index and others a 1-based index.
eg. If the string object uses a 0-based index (which it does) and the first weapon animation uses frame/direction/sequence #1 rather than #0, then you will have this problem.

 
n/a

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
1st May, 2012 at 01/05/2012 01:53:38 -

how do i fix this? the weapon doesnt use any of the preset animations, they start after all of those, the number display says that its on paragraph 1 when its on the first paragraph, so im guessing that means the base index is 1.. right? so how can i make them match up?

 
[Game design makes my brain feel like its gonna explode.]

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
1st May, 2012 at 01/05/2012 02:51:57 -

Without seeing your file, I can't say exactly, but you should probably be able to just add a "-1" or "+1" into one of your expressions somewhere (just use a little trial & error).

Edited by Sketchy

 
n/a

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
1st May, 2012 at 01/05/2012 03:04:16 -

alright, ill give that a try. ill post in a day or 2 and let you know if i got it working or not, if i didnt ill upload a copy of the game file for reference.

 
[Game design makes my brain feel like its gonna explode.]
   

Post Reply



 



Advertisement

Worth A Click