04-07-2018, 10:44 PM
(04-07-2018, 10:19 PM)Hypernova Wrote: Do this
Code://Turn him into a "accordion"!
offset = 3;
//Snap the parts
x = behind.x-offset*xscale;
if (collision_rectangle(bbox_left,bbox_bottom-4,bbox_right,bbox_bottom,obj_slopeparent,1,0))
{
do
{
y--;
}
until !(collision_rectangle(bbox_left,bbox_bottom-4,bbox_right,bbox_bottom-1,obj_slopeparent,1,0))
}
else
{
do
{
y++;
}
until (collision_rectangle(bbox_left,bbox_bottom-4,bbox_right,bbox_bottom,obj_slopeparent,1,0))
}
Thanks, but for some reason GameMaker reads it as 'Unexpected symbol'.
A new signature is on the works but have this: