Reply to Re: making creatures fly
If you don't have an account, just leave the password field blank.
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.