J
julkibr
Guest
I am trying to implement an game maker studio 2 function to game maker studio 1 ,however i am a newbie and don't know if i'm doing it right anyway. I have a problem in the code and i want to know this line is correct please help
Code:Game Maker 2:
inst.direction = (oPlayer.Image_xscale=1) ? 0 : 180
i had to make a change because i coudn't code the "?" in studio 1 .
code: if(oPlayer.image_xscale == 1) {inst.direction=180;} else (oPlayer.image_xscale==-1) {inst.direction=0;}
Remember I am a newbie,and i know something is teribly wrong hahaha. Please help ^^
Code:Game Maker 2:
inst.direction = (oPlayer.Image_xscale=1) ? 0 : 180
i had to make a change because i coudn't code the "?" in studio 1 .
code: if(oPlayer.image_xscale == 1) {inst.direction=180;} else (oPlayer.image_xscale==-1) {inst.direction=0;}
Remember I am a newbie,and i know something is teribly wrong hahaha. Please help ^^
Last edited by a moderator: