Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Reference Room] Threshold transition #8

Open
Jared-Sprague opened this issue Sep 8, 2018 · 9 comments
Open

[Reference Room] Threshold transition #8

Jared-Sprague opened this issue Sep 8, 2018 · 9 comments

Comments

@Jared-Sprague
Copy link
Member

When the character clicks a threshold object to leave the room i.e. a door, a transition will take place and load the new room with the character spawning at a defined position in tiled.

@Jared-Sprague Jared-Sprague added this to the Reference Room milestone Sep 8, 2018
@andrewrady
Copy link
Contributor

I wouldn't mind tackling the issue this week. That being said I think I'm going to have a busy week so if someone wants to pick it up sooner feel free!

@Jared-Sprague
Copy link
Member Author

@andrewrady Do you have much work in progress on this? Otherwise I'm going to bust it out today. Don't worry there will be plenty more tasty issues coming to work on :)

@andrewrady
Copy link
Contributor

@Jared-Sprague I haven't done much with this issue due to time, it's all you! 🙂

@andrewrady
Copy link
Contributor

@Jared-Sprague did you have a chance to work on this? I was just wondering if you wanted help or been super busy and wanted help 🙂

@Jared-Sprague
Copy link
Member Author

@andrewrady I'm so sorry for taking so long to get back to you I've been super busy with Open Jam

If you are still interested in working on this that would be great! The object selection example in the reference room already has objects placed on the doors, so that would be an easy example to start from. You would need to do 2 things:

  1. When a door is clicked the character walks to it
  2. The the character position is moved and the camera bounds are changed to a new room outlined in Tiled. A good example of how this works is how the Pipe transitions work in this mario example: https://github.com/nkholski/phaser3-es6-webpack It does basically the same thing and uses Tiled.

@andrewrady
Copy link
Contributor

@Jared-Sprague sorry for the late response. Super cool, I hope Open Jam is a good time! I can look at it this weekend if haven't wrapped it up.

@Jared-Sprague
Copy link
Member Author

The pipes in this example are very similar:
https://github.com/nkholski/phaser3-es6-webpack

@nwforrer
Copy link
Contributor

nwforrer commented Dec 4, 2018

I'll pick this up and work on it this week.

@Jared-Sprague
Copy link
Member Author

Jared-Sprague commented Dec 6, 2018

@nwforrer here is the pick of the whiteboard about how this should work. Use the mario example between pipes and underworld rooms for inspiration. We have two types of transitions, "Position" e.g. exiting via a door and "Inspect" e.g. looking out a window.

img-1173

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants