The Daily Click ::. Forums ::. Klik Coding Help ::. Cursor snap-to isometric grid?
 

Post Reply  Post Oekaki 
 

Posted By Message

Buster

BLING COMMANDER

Registered
  6/3/2002
Points
  1436

VIP Member
24th February, 2012 at 2/24/2012 2:10:39 PM -

Is there a simple method of making an active object (set to the position of the mouse cursor) snap to an isometric grid without the use of any extensions?

 
~¿?¿?¿?¿?¿?¿?¿?¿?¿?~

..::hagar::..

Administrator
Old klik fart

Registered
  2/20/2002
Points
  3029

You've Been Circy'd!
24th February, 2012 at 2/24/2012 2:55:19 PM -

Hi Buster, long time no see dude. Have you gone for the typical 1:2 ratio ?

 
n/a

Buster

BLING COMMANDER

Registered
  6/3/2002
Points
  1436

VIP Member
24th February, 2012 at 2/24/2012 3:17:14 PM -

Hey buddy! I see you're running the place now! Congrats. Yes standard 1:2 ratio.

 
~¿?¿?¿?¿?¿?¿?¿?¿?¿?~

..::hagar::..

Administrator
Old klik fart

Registered
  2/20/2002
Points
  3029

You've Been Circy'd!
24th February, 2012 at 2/24/2012 5:04:52 PM -

haha cheers dude .

Making a little example

 
n/a

Buster

BLING COMMANDER

Registered
  6/3/2002
Points
  1436

VIP Member
25th February, 2012 at 2/25/2012 6:22:00 AM -

Cheers man, I really appreciate it!

 
~¿?¿?¿?¿?¿?¿?¿?¿?¿?~

Chris Burrows



Registered
  9/14/2002
Points
  2396

GOTW WINNER OCT. 2011
26th February, 2012 at 2/26/2012 12:37:28 PM -

Whoops. I made an example but I didn't see you said "isometric grid".

Here it is if anybody is interested anyway:

http://www.whenthereisnoroominhellthedeadwalktheearth.com/MMF/gridsnap.mfa


Edited by Chris Burrows

 
n/a

Buster

BLING COMMANDER

Registered
  6/3/2002
Points
  1436

VIP Member
26th February, 2012 at 2/26/2012 1:54:46 PM -

Ohhh man I appreciate you going though the trouble! But yeah, unfortunately I need it to be isometric which is proving to be a little more challenging than I thought!

 
~¿?¿?¿?¿?¿?¿?¿?¿?¿?~

..::hagar::..

Administrator
Old klik fart

Registered
  2/20/2002
Points
  3029

You've Been Circy'd!
26th February, 2012 at 2/26/2012 11:22:52 PM -

Hmm I have tried projecting a 2d Grid into ISO, trouble is due to the scaling the mouse only works for half of the isometric projection.

Attempting a crafty bodge attack now

 
n/a

Sketchy

Cornwall UK

Registered
  11/6/2004
Points
  2477

VIP Member
26th February, 2012 at 2/26/2012 11:52:27 PM -

https://skydrive.live.com/redir.aspx?cid=b1e7ee094271bbda&resid=B1E7EE094271BBDA!498&parid=B1E7EE094271BBDA!131

 
n/a

Chris Burrows



Registered
  9/14/2002
Points
  2396

GOTW WINNER OCT. 2011
27th February, 2012 at 2/27/2012 6:42:18 AM -

Very nice.

 
n/a

..::hagar::..

Administrator
Old klik fart

Registered
  2/20/2002
Points
  3029

You've Been Circy'd!
27th February, 2012 at 2/27/2012 11:02:19 AM -

Very nicely done Sketchy . My bodge was a calamitous affair (looking for even lines and adding half a tile width to the cursor position).

 
n/a

Sketchy

Cornwall UK

Registered
  11/6/2004
Points
  2477

VIP Member
27th February, 2012 at 2/27/2012 12:42:34 PM -

I just googled "snap to isometric" and came up with this:
http://gmc.yoyogames.com/index.php?showtopic=290349

All I did was make an MMF2 example out of it.

 
n/a

Buster

BLING COMMANDER

Registered
  6/3/2002
Points
  1436

VIP Member
27th February, 2012 at 2/27/2012 1:43:50 PM -

Wow, thats perfect Sketchy! Thank you very much. Just what I needed

 
~¿?¿?¿?¿?¿?¿?¿?¿?¿?~
   

Post Reply



 



Advertisement

Worth A Click