View Full Version : Count and print decrements
Kianna Velene
07-08-2009, 12:22 PM
Hi, I'm trying to figure out where the decrement and increment funtions are. I've been looking for forever and it's killing me now. what I have is a loop that uses a count variable and right now when the user enters a number the count continuously goes forever and I think a use of a decrement will stop it.
Could someone please point me in the right direction?
Veryuhbull
07-08-2009, 12:55 PM
When you drag the number varible into your method this menu will pop up
set value
increment by 1
decrement by 1
loops continue to loop until they reach their index. (how many times) you can break a loop by inserting a method to reach the index thus ending the loop.
loops will not look at commands beyond them while "While" does look beyond.
Kianna Velene
07-08-2009, 03:08 PM
I was using a while to set a loop.
Veryuhbull
07-08-2009, 03:35 PM
Oh that wasn't too bad. This is something you can loop. How's this?:D
And may I suggest using "Do togheter" tags to speed up the ghost.vanish animation?
Kianna Velene
07-08-2009, 04:26 PM
Sorry computer is really slow. CTX. I think I got it now right?
Veryuhbull
07-08-2009, 06:55 PM
I don''t see why you incremented the count by 1 then had a print command. it resets every loop and is not needed. Unless you have other plans for that odd number. But it is looped right. And the skullelton dance ends up weird but you probably are working on that already.
dubastot
07-17-2009, 10:20 PM
How do you make a number variable a string because I am doing a health system with numbers.
Niteshifter
07-18-2009, 02:05 AM
How do you make a number variable a string because I am doing a health system with numbers.
Go to the World's function tab and scroll down until you see the "toString" or "What as a string" function. Once you do that just put it into the string variable you're using and then drag the number, object, etc. into the function box.