I’m trying to add doors into my game, and I want them to open when the player presses “E” button. I’m not sure how to do that, but I need it required that the player is close to the door and the mouse pointer is on the door
What have you tried, and where you get problems with anything specific?
You might want to read on those docs, that will help you achieve what you are asking:
- manipulating entities - http://developer.playcanvas.com/en/tutorials/beginner/manipulating-entities/
- entity picking - http://developer.playcanvas.com/en/tutorials/intermediate/entity-picking/
Ok I’ll take a look at those…thanks!