The Daily Click ::. Forums ::. Klik Coding Help ::. Changing debug values like "X vel/ Y vel" to string

Post Reply  Post Oekaki 

Posted By Message


30th July, 2009 at 02:59:23 -

I have many different values to keep track of and I've only been using counters to keep track of them but this is starting to become a hassle for me. I have like 12 different counters and each time I need to keep track of a new value I need to add a new counter.

I understand there is a way to do this with strings. How would I go about doing that?

(edit) also I want them to be in one single string, I think that would be very convenient

Edited by JetpackLover

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome.

Follow me on the twitters

Jon Lambert

Vaporware Master


VIP MemberWii OwnerTDC Chat Super UserI am an April FoolSSBB 3265-4741-0937ACCF 3051-1173-8012360 Owner
30th July, 2009 at 04:12:04 -

Most of the time it's good to use String Parser 2. Simply set the string to the Str$ of each value, like so:

Str$("Alterable Value A("Active"))+" "+Str$("Alterable Value B("Active"))+" "+Str$("Alterable Value C("Active"))

You add spaces into the string to separate the different values, then set the delimiter in the event editor to " ". That way, it can read any string you set the source string to as a list, and you can use the List Tokenizing actions to get each element (the different values) of the list. The String Parser detects elements by finding spaces and getting the text in between the spaces. You then utilize the values by comparing or setting or whatever you're doing to listGetAt$( "String Parser", n) where n is whatever element in the list you need.

Sandwich Time!Whoo!

JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.

Post Reply



Worth A Click