prike Posted June 9, 2017 Share Posted June 9, 2017 I am developing a game using phaser. I wanted to add a feature where user will get alert before any obstacle comes. I am planning to assign a property, "jump": true, to a tile or an object. Is there any way to read this property of the tile that user is passing by. I am following this tutorial for game development - https://software.intel.com/en-us/html5/hub/blogs/how-to-make-a-sidescroller-game-with-html5/. Is there any other better way to achieve this? Your suggestions/ code snippets will be helpful. Thanks Link to comment Share on other sites More sharing options...
samme Posted June 14, 2017 Share Posted June 14, 2017 If the player touches the trigger tile, you can use a collision callback. You can also use any of the getTile* methods in Phaser.Tilemap. Link to comment Share on other sites More sharing options...
Recommended Posts