TIled Map

Discussion and feedback on Construct 2

Post » Fri Mar 09, 2012 7:27 am

Excelent! What more can I say

Just asking myself, how I could implement a colission detection, or is it something that will come?Weishaupt2012-03-09 10:37:09
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Mon Mar 12, 2012 1:50 pm

@rex - do you plan to build some kind of colission detection into your plug in?
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Mon Mar 12, 2012 3:35 pm

@Weishaupt

What kind of "colission detection"? @delgado has the same question before. My answer is -- Collision polygon is defined in c2 (sprite editor). Or... Do I misunderstand something? Do you mean some tiles can move through, some are not?rexrainbow2012-03-12 15:37:27
B
97
S
22
G
178
Posts: 4,122
Reputation: 104,051

Post » Tue Mar 13, 2012 10:06 am

@rex - there will be certain tiles, that are unpassable, like mountains and others that are only passable with tools, like water. So you should have a tool to check the tiles around the player.
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Tue Mar 13, 2012 10:41 am

@Weishaupt

Thanks, I will think about this requirement.
B
97
S
22
G
178
Posts: 4,122
Reputation: 104,051

Post » Wed Apr 18, 2012 4:49 pm

Hi @rexrainbow, great plugin, but is there any way for the tile propertied from the map to be set to a corresponding instance variable in the "tile" in construct 2? If not, could you implement it? It'll make it easier to decide whether or not we need to perform a collision check. Cheers! :)
B
19
S
5
G
4
Posts: 85
Reputation: 4,925

Post » Wed Apr 18, 2012 4:53 pm

[QUOTE=rexrainbow] @Weishaupt

What kind of "colission detection"? @delgado has the same question before. My answer is -- Collision polygon is defined in c2 (sprite editor). Or... Do I misunderstand something? Do you mean some tiles can move through, some are not?[/QUOTE]

If you could make your plugin create some c2 'tiles' with the behavior solid (the ones with an impassable property set to 1) and all other tiles without the solid property, then this plugin would be incredibly useful!
B
19
S
5
G
4
Posts: 85
Reputation: 4,925

Post » Wed Apr 18, 2012 11:53 pm

@valkyriegames

It might be match your requirement:
http://dl.dropbox.com/u/5779181/tmx%20import%20demo.7z

Dependence:
Plugin:
TmxImporter
Board
SquareTx

Behavior:
Grid move

1. you can get each tile properties by using expression: TileProp(name)
- [TmxImport] "action: retrieve tile array" will trigger "condition:on each tile cell" for each tile. Setup tile sprite under this condition.

Check expressions of tmx importer to get more properties. Please see TmxImporter for more detail.

2. board plugin, squareTx plugin, grid move behavior are options. You can use tmx importer plugin stand alone. i.e. you only need to set solid property by expression: TileProp(name) without other plugins.

3. board plugin maintain a logic array of chess board.

4. "Grid move" behavior could let chess do grid move (extended from moveTo behavior) at board. It will be stuck if
a. try to move on a solid tile
b. try to move on other chess which has the same z order (board's z order, not layout editor)rexrainbow2012-04-19 00:38:14
B
97
S
22
G
178
Posts: 4,122
Reputation: 104,051

Post » Thu Apr 19, 2012 12:39 am

@valkyriegames

I put tmx importer plugin + 8 direction behavior sample capx into the same zip file.

So there are two capx files
- tmx importer + grid move
- tmx importer + 8 direction

Maybe tmx importer + 8 direction is enough. So please ignored tmx importer + grid moverexrainbow2012-04-19 00:44:40
B
97
S
22
G
178
Posts: 4,122
Reputation: 104,051

Post » Thu Apr 19, 2012 5:00 am

@rexrainbow

Thanks for those replies, they were incredible helpful. I had a look in the TMXImporter actions but couldn't find anything related to Properties. I see that they have to be accessed through system. I think this is exactly what @delgado and @Weishaupt were asking for too.

Thanks man, you're just too awesome for making and providing support for these plugins!
B
19
S
5
G
4
Posts: 85
Reputation: 4,925

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: rexrainbow, yonffi and 17 guests