Drawing Tile Maps Using Mouse.

Get help using Construct 2

Post » Sat Nov 22, 2014 7:57 pm

I'm working on a level editor for a platforming game, and I'm trying to simplify the terrain editing by using the TileMap object, as opposed to placing individual sprites.

The problem is: It's not working. My code is as follows:

Mouse | On any click ........... | Tile map Set tile (mouse.x, mouse.y) to tile 1 (normal)
AND
Mouse | Cursor is over Tile Map


I'm assuming my problem is because the tile x and y aren't the same as the mouse x and y, but I don't know how to find a workaround. Any ideas?
B
8
S
3
Posts: 48
Reputation: 1,013

Post » Sat Nov 22, 2014 8:00 pm

PositiontotileX and positiontotileY is what you are looking for I guess
https://www.scirra.com/manual/172/tilemap
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
52
S
22
G
18
Posts: 2,122
Reputation: 17,093


Return to How do I....?

Who is online

Users browsing this forum: adamebastin, ketramtu18 and 8 guests