Jump to content


_202389

Member Since 28 Apr 2011
Offline Last Active May 08 2012 10:40 PM

Posts I've Made

In Topic: Creation code and create event: which comes first?

12 April 2012 - 07:49 PM

why don't you just try?

In Topic: 'position_destroy' destroys objects above too?!

02 April 2012 - 10:38 PM

it will destroys all instances whose collision masks contains position x,y.

In Topic: improved instance nearest

28 February 2012 - 11:20 PM

I didn't saw scripts before but i couldn't imagine another way. Sorry about that :)

In Topic: draw_polygon()

02 September 2011 - 11:38 AM

Pretty cool :D
The advantage with your script is that you set out the points anywhere you like.

If you just need the shapes, this script could do :)

draw_shape(x,y,s,r,dir)

//s = sides
//r = radius
//dir = direction

if argument2 < 3 argument2 =3
scr_jump = 360/argument2
for(scr_i=0;scr_i<argument2;scr_i+=1) {
draw_line(x+lengthdir_x(argument3,i*scr_jump+argument5),y+lengthdir_y(argument3,i*scr_jump+argument5,
x+lengthdir_x(argument3,i*scr_jump+scr_jump+argument5),y+lengthdir_y(argument3,i*scr_jump+scr_jump+argument5)
}

i think u should add outline-filled argument and u can use min(argument2,3)

In Topic: place_free problem

08 May 2011 - 12:53 AM

problem is solved thanks :):)