Change delay by script?

O Ilusionista

Captain 100K
Its possible to change a frame delay by script?

The idea is to be able to spawn an entity and change it animation frame delay right after the spawn, so I can have only entity of a choosen effect (for example) with different anim velocities.
 
You can't change delay (yet), but you can change edelay, which adds or subtracts from the existing delay.

DC
 
i cant seem to get edelay to subtract from an existent delay...
my idea was to make -1 delay for all animations
every time the entity goes into follow2
will this work with script ? 
 
all attempts to use edelay with script will crash the engine, anybody used it properly with results ?
    void self = getlocalvar("self");
    if( frame == 1){
      int r = rand()%3;
      if( r == 1){
  changeentityproperty(self, "edelay",1,2 );
        changeentityproperty(self, "speed", 2.5);
 
Back
Top Bottom