Scripting, Code & Interaction: Difference between revisions

Line 231: Line 231:


==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.
==Taking away score points.==
==Taking away score points.==
==Changing the names of characters, hotspots, objects, and inventory items in the middle of gameplay==
==Changing the names of characters, hotspots, objects, and inventory items in the middle of gameplay==
==How to play movies and video files (AVI, MPG, WMV, etc.)==
==How to play movies and video files (AVI, MPG, WMV, etc.)==
[[Category:The AGS Beginners' FAQ]]
[[Category:The AGS Beginners' FAQ]]