making creatures fly
I want a little creature in my dmod to fly, how can i do that?
March 24th 2011, 02:32 PM

ghost


Hard way: Make 3d dmod
Easy way: make shadow effect
Solution: Don't know. I just had an urge to spam.
Easy way: make shadow effect
Solution: Don't know. I just had an urge to spam.

Well, depends on what height level you want the sprite to fly. At Dink's head level? Way above the playable screen?
To make the sprite ignore blue hardness (for hills, rocks, water tiles)
If your sprite is too high to be hit by anything
High enough to not be affected by normal hardness?
And to make it drawn on top of everything if it needs to.
You may also want to give it a shadow.
Tricky thing with the shadow though is it will use the exact coordinates of the sprite it's bound to. You'll have to manage the offset by graphical means.
To make the sprite ignore blue hardness (for hills, rocks, water tiles)
sp_flying(¤t_sprite, 1);
If your sprite is too high to be hit by anything
sp_nohit(¤t_sprite, 1);
High enough to not be affected by normal hardness?
sp_move_nohard(¤t_sprite,1);
And to make it drawn on top of everything if it needs to.
sp_que(¤t_sprite,10000);
You may also want to give it a shadow.
int &shadow = create_sprite(0,0,15,&seq,&frame); sp_brain_parm(&shadow,¤t_sprite); sp_nohit(&shadow,1); //if flying low set the sp_que to 1, if above everything, use 1000) sp_que(¤t_sprite,^);
Tricky thing with the shadow though is it will use the exact coordinates of the sprite it's bound to. You'll have to manage the offset by graphical means.
sp_flying(&sprite, 1);
To make it able to go over blue hardness. And add a shadow for the looks as the mysterious ghost mentioned. What exactly do you mean?
Edit: Beaten
