if x=(a multiple of 32)+16 && y=(a multiple of 32)+16
I thought of doing 'if x/32=(an integer)', but again, I couldn't figure out how to do that. Apparently my maths/gml sucks; I'm sure I'm completely overlooking something simple.
Male
the_hyrax_lord hasn't added any friends yet.
30 October 2011 - 02:43 PM
if x=(a multiple of 32)+16 && y=(a multiple of 32)+16
11 October 2011 - 03:52 PM
target=argument0 var g; g=instance_nearest(x,y,target) x += sign(g.x - x) * 32; y += sign(g.y - y) * 32;
30 September 2011 - 05:18 PM
temp=instance_create(x,y,o_targetstub) temp.creator=global.selected
28 September 2011 - 08:18 PM
26 September 2011 - 07:09 PM
Community Forum Software by IP.Board
Licensed to: YoYo Games Ltd

Find content