Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Got that, I should calculate the Angle between the player's direction with camera


var cdir = abs(Camera.Angle) % 360;

if ( Camera.Angle < 0 ){ cdir = 360-cdir; }

var dAng = cdir+direction-90;

if ( dAng <0 ){ dAng += 360; }

if ( dAng >=360 ){ dAng -= 360; }

if( moving ){

if( dAng>100 && dAng<260 ){ sprite_index = sprGroup[$ "moveL"]; }

if( dAng>280 || dAng<80  ){ sprite_index = sprGroup[$ "moveR"]; }

}

(+1)

hey! Glad you got it working!! Interesting about the scaling though, I will look into that for sure!