How do I figure this math out {SOLVED}

Get help using Construct 2

Post » Wed Dec 17, 2014 6:15 pm

trying to simply have a 32X32 block created on mouse click and have it SNAP to the 32x32 grid and the next block placed if close to the first would snap to the grid beside it...
Last edited by desjardins2014 on Wed Dec 17, 2014 7:00 pm, edited 1 time in total.
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Wed Dec 17, 2014 6:24 pm

Are you looking for something like this?

block-grid.capx


Just place the blocks at

x: floor(Mouse.X/32) * 32
y: floor(Mouse.Y/32) * 32
You do not have the required permissions to view the files attached to this post.
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
20
S
6
G
3
Posts: 632
Reputation: 3,766

Post » Wed Dec 17, 2014 6:56 pm

Oh thats perfect thank you soo much..... PS how do I close this thread and mark it solved?
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Wed Dec 17, 2014 6:57 pm

No idea. Lol. Can you rename the thread and add [SOLVED] to the title?
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
20
S
6
G
3
Posts: 632
Reputation: 3,766


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests