Need help with creating collisions dynamically #471
Unanswered
mohanvaddi
asked this question in
Q&A
Replies: 1 comment 3 replies
-
How exactly are you setting the collision properties? Btw, you have to make sure that the tileCollisionCache is not enabled (it is not by default): https://annoraaq.github.io/grid-engine/api/interfaces/GridEngineConfigHeadless.html#cacheTileCollisions |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @Annoraaq
I'm using
grid-engine
plugin in my phaser3 game. but I need help with collisions in dynamic generated maps.My game has two scenes, TOWN scene and DUNGEON scene.
collision
layer. and It is age_charLayer
. Collisions are working fine in this scene.collision_not_working.mp4
I am procedurally generating a dungeon based on this medium article and I'm trying to add
collision
layer and tileset properties like this to the map. and I'm adding theCOLLISION_TILE
where ever needed dynamically. - (YOU CAN SEE THIS IN THE VIDEO)then I'm creating
gridEngine
, tho the grid-engine movement is working in the scene the collisions are not working in this scene.Can grid-engine collisions work in my case, I don't see any example for dynamic creation of collisions in grid-engine docs site ? or Is there something I'm missing here ? please let me know.
Beta Was this translation helpful? Give feedback.
All reactions