Saturday, 29 November 2025

Stencyl topic update: so-called endless scene with zoom

 Apologies - Stencyl-nator has made a mistake on rotation for the so-called endless scene 

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; 
}

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; 
}

No comments:

Post a Comment