Apologies - Stencyl-nator has made a mistake on rotation for the so-called endless scene
updated page topic link: https://stencyl-nator.blogspot.com/p/so-called-endless-scene-with-zoom.html
old coide
public function randgen_rot():Int
{
var a:Int = Std.int(Math.floor(Math.random() * 3.99));
if(a==0) return 0;
else if(a==2) return 90;
else if(a==3) return 180;
else if(a==4) return 270;
return 0;
}
public function randgen_rot():Int
{
var a:Int = Std.int(Math.floor(Math.random() * 3.99));
if(a==0) return 0;
else if(a==2) return 90;
else if(a==3) return 180;
else if(a==4) return 270;
return 0;
}
new code
public function randgen_rot():Int
{
var a:Int = Std.int(Math.floor(Math.random() * 3.99));
if(a==0) return 0;
else if(a==1) return 90;
else if(a==2) return 180;
else if(a==3) return 270;
return 0;
}
{
var a:Int = Std.int(Math.floor(Math.random() * 3.99));
if(a==0) return 0;
else if(a==1) return 90;
else if(a==2) return 180;
else if(a==3) return 270;
return 0;
}
No comments:
Post a Comment