How to fire event on sprite usinng keyboard (onKeyPress)

How to fire event on sprite usinng keyboard (onKeyPress)
0

#1

i have 5 sprite .out of 5 i have to select 3 sprite using keyboard(onkeypress) event…
Your help is very much appreciated.


#2

Add keyboard events listener:
http://www.cocos2d-x.org/docs/cocos2d-x/en/event_dispatcher/keyboard.html

And do what you want :wink: