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
15
S
5
Posts: 56
Reputation: 1,404

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
54
S
23
G
18
Posts: 2,123
Reputation: 17,200


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 2 guests