how could i make my player open the chest using the keyboard input game link https://flowlab.io/game

help https://flowlab.io/game/view/1469791

Open the behavior screen of the chest object and add this:

The proximity block checks if the player is close and the keyboard block checks if spacebar is pressed down. The AND block is there because the player should be close in order to open the chest, and the player should press space bar too.

@Latif thanks,i got another how could i make it emit an object.

do i just connect the keyboard input and emit.

yes

@USERNAME55 thx

@USERNAME55 when i do it like that you,could press space far away and get the apple.

do this instead

Screenshot 2020-08-06 at 7.56.52 PM

@USERNAME55 thx

you’re welcome