Animate player via entitymove
Displaying 1-1 of 1 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Keast

Ok, so grue already tried to explain this to me, but I still can't get it to work:

I want a simple player ent animation if said player presses SPACE. So I hook up Space with the following:

void action()
{
    unpress(0);
    entitymove(player, "z1w4z2w4z0");
}


If I use this with a normal entity, it will work. But if it's the player, it will only reach the first frame and then just stop. For ever.

Grue told me to do this:
void action()
{
    unpress(0);
    entitymove( player, "z1w4z2w4z0" );
         while( entity.movecode[player] ) {
         ProcessEntities();
         render();
         showpage();
         }
}


Two things about that: Could anybody explain to me why entity animation doesn't work properly ONLY on the player, and why does the ProcessEntities() command not exist in my VC?

Posted on 2011-07-15 21:54:31


Displaying 1-1 of 1 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.