#Turning User Input to picture

5 messages · Page 1 of 1 (latest)

real charm
#

Im new to coding and atm im coding on processing.Im trying to code sth like a kid app,when a user press like P it will show a picture of a panda and A then a picture of an Apple will show up,can anyone pls help me how to do it? I know it is alot to ask,thank you.

jagged stirrup
#

are you looking to display a random image or a specific image?

real charm
jagged stirrup
#

sorry, just woke up, if you want a set collection of panda images, i would use the keyPressed event with a switch statement for each key you support, then display a PImage of a panda on the screen

one way to approach the different panda images is to have say 5 images in a folder, then increment a value of how many times they have pressed the key while being on the panda, then display the image
(also sorry for the wall of text)