Jump to content

Triggering events in levels


Sawyer
 Share

Recommended Posts

I've managed to import a 2D side-scrolling tilemap into Phaser.  My question is, whats the most efficient way to go about triggering events at certain points of the level? For example, say I wanted to show a particle near the end of the level.

 

The idea I had in mind, was to put in a transparent object layer into my tilemap and use the overlap detection to trigger this.  Would this be the recommended way to go about things?

 

If so, could someone give me a quick walkthrough of doing this?

 

I've created the object layer in Tiled and inserted the tiles into my map.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...