How I can do that Image will be rotated in a actor direction?
Sorry for comparing, but in GameMaker it was something like that: draw_sprite_ext(spr,subimg,x,y,xscale,yscale,roatation,col,alpha).
if(angle>0)
{
ChangeAnimation("Event Actor", "ghoul1", FORWARD);
}
if(angle>90)
{
ChangeAnimation("Event Actor", "ghoul2", FORWARD);
}
if(angle>180)
{
ChangeAnimation("Event Actor", "ghoul3", FORWARD);
}
if(angle>270)
{
ChangeAnimation("Event Actor", "ghoul4", FORWARD);
}
if(angle>0 && angle<90)
{
ChangeAnimation
}
if(angle>338 && angle<360)
{
ChangeAnimation("Event Actor", "0", NO_CHANGE);
}
if(angle>0 && angle<22)
{
ChangeAnimation("Event Actor", "0", NO_CHANGE);
}
if(angle>22 && angle<67)
{
ChangeAnimation("Event Actor", "45", NO_CHANGE);
}
if(angle>67 && angle<112)
{
ChangeAnimation("Event Actor", "90", NO_CHANGE);
}
if(angle>112 && angle<158)
{
ChangeAnimation("Event Actor", "135", NO_CHANGE);
}
if(angle>158 && angle<202)
{
ChangeAnimation("Event Actor", "180", NO_CHANGE);
}
if(angle>202 && angle<247)
{
ChangeAnimation("Event Actor", "255", NO_CHANGE);
}
if(angle>247 && angle<292)
{
ChangeAnimation("Event Actor", "270", NO_CHANGE);
}
if(angle>292 && angle<338)
{
ChangeAnimation("Event Actor", "315", NO_CHANGE);
}
Users browsing this forum: No registered users and 1 guest