Animating Entities
Displaying 1-2 of 2 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
stonefyst

I'm a total newbie, experimenting with the darin chr in a tutorial. How do I get an entity (like a game's npc) under program control to perform a simple animation without moving to a different tile. E.G. dancing in place?

Posted on 2005-03-21 03:42:02

RageCage

ent=entitySpawn(0,0,'darin.chr');
entityMove(ent, 'Z9W10Z8W10Z7W10Z0');

this will make the entity frame be 9, wait 10ms, 8, wait, 7, wait, reset.

If you dont have the last one be Z0 then the character will not go back to the correct movement animation when you start moving.

Hope that helps...

Posted on 2005-03-21 07:06:24


Displaying 1-2 of 2 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.