Crimsondeath
Active member
Hi again, it's me mar...erm... I mean Crimsondeath xdddd.
Well, umm it's posible to move an entity vertically through the Terrain?
I have used :
subject_to_basemap 0
no_adjust_base 1
And the entity moves vertically but didn't pass though the ground (terrain).
Here is the entity header:
The animation:
I'm using the deafult dasher script, I also tried with movea and didn't work:
Thanks again
.
Well, umm it's posible to move an entity vertically through the Terrain?
I have used :
subject_to_basemap 0
no_adjust_base 1
And the entity moves vertically but didn't pass though the ground (terrain).
Here is the entity header:
Code:
name Factory_crane_d
type none
speed 5
shadow 0
setlayer -5
subject_to_gravity 0
subject_to_minz 0
subject_to_basemap 0
no_adjust_base 1
subject_to_hole 1
subject_to_wall 0
subject_to_platform 0
offscreenkill 9999
load Wooden_box_d
animationscript data/scripts/entities/decorations/factorycrane.c
palette data/bgs/stage-2/decorations/warehouseinner/mano_mecanica1a.gif
The animation:
Code:
anim idle
loop 1
offset 40 208
delay 100
@cmd dasher 0 0 0 1
frame data/bgs/stage-2/decorations/warehouseinner/mano_mecanica1b.gif
delay 90
@cmd dasher 0 -1 0 1
frame data/bgs/stage-2/decorations/warehouseinner/mano_mecanica1b.gif # <--- here is where hit the ground and can't pass though it.
delay 200
@cmd dasher 0 0 0 1
frame data/bgs/stage-2/decorations/warehouseinner/mano_mecanica1b.gif # them continue moving normally
delay 90
@cmd dasher 0 1 0 1
frame data/bgs/stage-2/decorations/warehouseinner/mano_mecanica1b.gif # <--- here work fine moving vertically away from the ground :D .
delay 303
@cmd dasher 0.5 0 0 1
frame data/bgs/stage-2/decorations/warehouseinner/mano_mecanica1a.gif
delay 200
@cmd dasher 0 0 0 1
frame data/bgs/stage-2/decorations/warehouseinner/mano_mecanica1a.gif
@cmd spawn01 "Wooden_box_d" 0 0 0
frame data/bgs/stage-2/decorations/warehouseinner/mano_mecanica1b.gif
delay 303
@cmd dasher -0.5 0 0 1
frame data/bgs/stage-2/decorations/warehouseinner/mano_mecanica1b.gif
@cmd dasher 0 0 0 1
frame data/bgs/stage-2/decorations/warehouseinner/mano_mecanica1b.gif
I'm using the deafult dasher script, I also tried with movea and didn't work:
Code:
void dasher(float Vx, float Vy, float Vz, int Flip)
{// Dash with desired speed!
void self = getlocalvar("self");
int dir = getentityproperty(self,"direction");
if(dir==0 && Flip==1){ // Facing left?
Vx = -Vx ;
}
changeentityproperty(self, "velocity", Vx, Vz, Vy); //Move!
}
Thanks again