1 decade ago
by FabienM
Hi,
When I press the space bar on my Collision layer int the weltmeister, I have several shapes, like triangles. But when I put this shpae in my level, it is renderer like a square.
It is me who is wrong, but I don't understand how it works ?
thxs
Are you saying that the shapes in the editor all get displayed as squares even if you select a slope? or when you are running your game.
1 decade ago
by FabienM
hi
If I select a slope, the collision map is a square. and I would like to keep the slope of course
It is invisible in my game because it is drawn with the collision layer..
How does it work for you ? you select a slope and the collision map is the same slope ?
thx
Not sure I understand the issue but in weltmeister if i edit the collision layer, use the space bar to display the tile palette , click on the tile i want to draw and then draw it on the collision layer. it displays the same tile on the layer as i selected from the palette. Do you get the same issue with other layers and palettes?
1 decade ago
by FabienM
Hi,
it's not my issue.
My issue is that I don't understand the 'not square tiles' in the collision layer.
there are some arrows which does nothing more than a square for me, there are some slopes but their collsision map is a square...
i don't understand to use these elements..
OK, The slope tiles and one way tiles got introduced in version 1.19
http://impactjs.com/blog/2011/12/impact-1-19 .
The slopes should act like slope collisions (not square collisions) and the one way squares should only allow you to pass through in the direction of the arrow.
http://impactjs.com/documentation/class-reference/collisionmap collision.slope you can also use ig.game.collisionMap.getTile(tx,ty) if you look in collision-map.js at the CollisionMap.defaultTileDef you will see all the tiledefs so for example 12,23,34 and 45 are the one way tiles.
Does that help ?
1 decade ago
by FabienM
Hi Stuart,
thank you for the explaination, it's easier now to understand how it works
Fabien
Page 1 of 1
« first
« previous
next ›
last »