Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
0
Members

Sup.actor.setOrientation(Quaternion);

A topic by SyrupOnWaffles created Oct 28, 2020 Views: 193 Replies: 2
Viewing posts 1 to 2
(1 edit) (+1)

Whenever I use this function, My screen goes white. 

i got code now so thats cool 

if(Sup.Input.isKeyDown("RIGHT") && turncoin > 0){ 
        let orientation = new Sup.Math.Quaternion(0, 0, 90, 0);
        this.actor.setOrientation(orientation);
        stage = "static";
        turncoin =  turncoin - 25;
      } 

Here a tip :

change the orientation of an actor yourself - put a little Sup.log(this.actor.getOrientation()) - and cut paste.

Quaternion is complex and don't work with angles so it's the fastest.

but there is function who use angle, (in a hurry can't remenber, it seem there is "local" in it)

(+1)

Thanks for the tip, I could have just used Euler all along it seems. Sorry for my incapability to understand this.