Posted March 12, 2020 by Grimland
[ 11:20am ]
Working on as many animations as possible today. Bat, Ghost, Ghoul, Skeleton, Evil Knight and maybe more.
code for Flying/Floating enemies [ STEP ] process
/// @description work with wall collisions if(place_meeting(x-hsp,y,oWall)) { while(!place_meeting(x-sign(hsp),y,oWall)) { x -= sign(hsp); } hsp = -hsp; } x += hsp; if (hsp !=0 ) image_xscale = sign(hsp);
code for Flying/Floating enemies [ CREATE ] process
hsp = 2; // have bat/ghost fly right as default
[ 12:20pm ]
Seems i'll need to use a non-collision wall object for the flying enemies so that the player doesn't hit those hard invisible walls.