I've been looking all over and can't find anything specific to what I'm trying to do:
I've created a family of sprites, with 4 good sprites and 1 bad sprite
My main character is a graffiti artist who wants to spray paint his "tags" on a building
My character is able to approach the wall, and I want the player to tap the space bar at the point where he will spray paint his tag
The functionality I'm looking for is: 4 out of 5 times the player taps the space bar, one of his graffiti tags will be placed on the wall - but the 5th time a police officer will arrive to arrest him. It needs to be a random response so that the player never knows when the police officer will arrive.
I thought I was close with:
Event: keyboard, when space is down, system picks a random family member instance, with the family members numbered from 1-5
The action is to then set the position of the random sprite next to the graffiti artist - however, when I run this, all 5 sprites show up every time.