Jump to content


Photo

Quick Animation Question.


  • Please log in to reply
2 replies to this topic

#1 anders339

anders339

    GMC Member

  • New Member
  • 2 posts

Posted 15 May 2007 - 07:50 PM

I want to use a whole image for a hero's, and I only want a pair of subimages to be animated duing a move.. what do I do to make this work and not show all the frames ingame on that move?

Sorry if the explantion sucks to you.
  • 0

#2 jah32

jah32

    GMC Member

  • New Member
  • 67 posts

Posted 15 May 2007 - 08:44 PM

in step put

if image_index<2
image_index+=1


if image_index=1
image_index=0

that should flip through the first 2 frames



EDIT: BTW, not sure if you know this or not but comps start counting at 0 not 1 so fram 1 is really frame 0, frame 2 is frame1 etc

Edited by jah32, 15 May 2007 - 08:45 PM.

  • 0

#3 anders339

anders339

    GMC Member

  • New Member
  • 2 posts

Posted 15 May 2007 - 09:14 PM

in step put

if image_index<2
image_index+=1


if image_index=1
image_index=0

that should flip through the first 2 frames



EDIT: BTW, not sure if you know this or not but comps start counting at 0 not 1 so fram 1 is really frame 0, frame 2 is frame1 etc

<{POST_SNAPBACK}>

Is that the only way, if you want the "walking animation" to be subimage 0,1,2 and the "jumping animation" to be subimage 3,4,5? Thought it was some other way too.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users