Graphics, Characters, Text & Rooms: Difference between revisions
Graphics, Characters, Text & Rooms (view source)
Revision as of 01:52, 1 December 2005
, 1 December 2005→Having a character continuously animated in the background: (Wrong content :P)
(→Having a character continuously animated in the background: (Wrong content :P)) |
|||
Line 226: | Line 226: | ||
==Having a character continuously animated in the background== | ==Having a character continuously animated in the background== | ||
'' | ''I would like to have my character continuously animating in the background, but if I loop it continuously, I get errors and/or strange things happen. Or, I just can't get it to work! Help!'' | ||
Ooooh, sorry, that wasn't in the form of a question! ;) | |||
Heh just kidding. You can use the character's idle animation to do this. Simply set up his/her idle animation ('''SetCharacterIdle()''', or '''cEgo.SetIdleView()''' for AGS V2.7 and above) with the idle delay to "0" so that it plays constantly. Voila! You now have a repeatedly animating background character with only one line of script. If you wanted, for example, a character in the background to do a one-time animation randomly with pauses between, set the idle delay to a higher number. The higher the idle delay, the longer between idle animations AGS will wait. | |||
==Jerky character/sprite animation== | ==Jerky character/sprite animation== |