int weight = 20;
y = ((weight -1)*y + player_box.y-60)/weight;
Is there a way to re-script this so it will only move between y600 and y4000? I'm trying not to use collision-events if not needed.
if (y < 600)
{
y = 600;
}
else if (y > 4000)
{
y = 4000;
}
Users browsing this forum: No registered users and 1 guest