How do I Get a TileMap to look at mouse?

Get help using Construct 2

Post » Thu Nov 10, 2016 6:24 am

Basically I'm wanting the player to be able to have a tile map rotate toward the position of the mouse.

For a normal sprite this is easy but I don't see an option for tilemap.
B
23
S
8
Posts: 115
Reputation: 2,640

Post » Thu Nov 10, 2016 8:27 am

I've tried to pin the tile to an sprite that rotates toward the mouse. Not quite the result I was expecting. Maybe construct's engine doesn't allow us to set the angle of the tiles. :/
B
14
S
6
Posts: 11
Reputation: 1,122

Post » Thu Nov 10, 2016 9:03 am

B
24
S
3
G
1
Posts: 451
Reputation: 2,165

Post » Thu Nov 10, 2016 10:05 am



My game is a multiplayer game and I wanted to use tile maps as the characters of my game so yes it "fixes" the problem but for the great scale of multiplayer it doesn't. Because each player needs to be able to control their character and I can't create a number of layers because I'm not sure how many people will be playing at one time or how much I'll scale it. It could be 2 -4 players or it could be 32-64.
B
23
S
8
Posts: 115
Reputation: 2,640

Post » Thu Nov 10, 2016 10:23 am

Taser wrote: I'm not sure how many people will be playing at one time or how much I'll scale it. It could be 2 -4 players or it could be 32-64.


OK, that's a problem. The amount of layers 'should not' have an affect of the performance. So if your maximum number of players is 64 you could use 64 layers, independent of the actual number of players.
But I admit, that's not really a satisfying solution.
B
24
S
3
G
1
Posts: 451
Reputation: 2,165

Post » Thu Nov 10, 2016 10:39 am

What about Just using sprites as bank of images that compose your characters and not using tilemaps for what they are not intended to be used...
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
284
S
109
G
91
Posts: 7,317
Reputation: 87,483

Post » Fri Nov 11, 2016 6:24 am

Kyatric wrote:What about Just using sprites as bank of images that compose your characters and not using tilemaps for what they are not intended to be used...

Well the idea is that if a bullet hit apart of the ship that only that block would be effected instead of the entire ship as a whole.
I could make thousands of images of the same ship in every possible way but I feel that is an insane amount of work when I could just use a tilemap instead.

Honestly just a rotate to position command would solve my problem
B
23
S
8
Posts: 115
Reputation: 2,640

Post » Fri Nov 11, 2016 6:25 am

Also if you use the pin command and spin your ship fast the blocks will lose the place they was connected on the ship in a magnet kinda way.
B
23
S
8
Posts: 115
Reputation: 2,640

Post » Fri Nov 11, 2016 6:49 am

I've wanted to rotate tilemaps as well in the past, but there aren't any good way to do it, unfortunately. And because it's difficult for people to see the benefit in doing so, because it isn't popular design choice, it probably will remain not implemented.
B
41
S
19
G
65
Posts: 1,085
Reputation: 37,842

Post » Fri Nov 11, 2016 11:04 am

Prominent wrote:I've wanted to rotate tilemaps as well in the past, but there aren't any good way to do it, unfortunately. And because it's difficult for people to see the benefit in doing so, because it isn't popular design choice, it probably will remain not implemented.

Well that's why it's so important to voice our concerns and ask for features we need. There is no reason why we can't have the option, It might not be practical for everyone but it is for me.
B
23
S
8
Posts: 115
Reputation: 2,640


Return to How do I....?

Who is online

Users browsing this forum: ksiads and 1 guest