Group-1-Capstone / cerulean

Fullstack development of a React/Phaser3 UI game
MIT License
0 stars 1 forks source link

Player Movement in Main Room #47

Open dcbasham opened 2 years ago

dcbasham commented 2 years ago

When you click on a door, if the avatar passes over another door or the Star for the journal it will open it. will enter that room/open the journal. We want the avatar to only travel to the place where the click happened. Need to figure out how to either tell it to ignore other doors or give it a certain path to follow.

try mouse hover && collide?

MayKay1 commented 2 years ago

Now a stretch-goal-fix

dcbasham commented 2 years ago

prevent character from entering doors other than the one clicked. navigation in the main room is a big deal and is annoying if it takes the user into the wrong room. Combine with OnClick and On Player Enter