|
Post by IsmAvatar on Jun 3, 2006 22:43:07 GMT -5
it always has. If you wanted it to stop after the first time around, you would have to specifically tell it that in the animation end event.
but you shouldn't be putting a -1 in for either of those variables. I told you, if image_single used to be -1, use image_index = 0; image_speed = 1.
|
|
|
Post by Xenith on Jun 3, 2006 22:50:40 GMT -5
it's weird though, since i tell it to stop animating when no directions are being pressed, but i never told it to start again when there were buttons being pressed.
so putting image_index = 0 and image_speed = 1 is the same as putting image_single = -1? sorry if i didn't get that the first time ;D
|
|
|
Post by shad0w on Jun 4, 2006 0:53:05 GMT -5
image_single=-1 tells gm to cycle through automatically, but putting a positive number tells it to display that single frame.
|
|
|
Post by Xenith on Jun 4, 2006 1:26:45 GMT -5
image_single=-1 tells gm to cycle through automatically, but putting a positive number tells it to display that single frame. yeah i know that but the speed is off in gm6 when you use image_single so i tried the new one but when i put image_index = -1 it would just set it to the first frame but when i removed it, I got the effect I was looking for but i'm not really sure why.
|
|
|
Post by IsmAvatar on Jun 4, 2006 13:11:38 GMT -5
Like I said, -1 is not a value that you can use for either of those variables. There are no negative image indexes, and I don't think it can animate backwards (unless you custom program it to do such).
image_single was just a combination of the two variables into one, which is why it allowed the negative value, which literally meant "animate"
|
|
|
Post by Xenith on Jun 4, 2006 13:32:47 GMT -5
Like I said, -1 is not a value that you can use for either of those variables. There are no negative image indexes, and I don't think it can animate backwards (unless you custom program it to do such). image_single was just a combination of the two variables into one, which is why it allowed the negative value, which literally meant "animate" wait, so all this time i've been putting in image_single = -1 and it wasn't even supposed to make it animate? I'm sure someone told me that that was the code to get the images to cycle
|
|
|
Post by IsmAvatar on Jun 4, 2006 16:17:52 GMT -5
nonononononono
read the post...
-1 IS the value to make it animate. But only for image_single. But image_single has since been deprecated, and replaced with image_index and image_speed, which can NOT be -1.
|
|
Five Damned Dollarz
Guest
|
Post by Five Damned Dollarz on Oct 15, 2006 1:15:07 GMT -5
font_replace_sprite(ind,spr,first,prop,sep) Replaces the font ind with a new sprite-based font.
|
|