Occasional character appearance
Hi all,
I have 8 bonus characters that I want to appear randomly throughout my game (there are 18 scenes)in a random order and not necessarily every time you play it, and if you click on them for the brief time they are on screen you would get a bonus.
What would be the best way to do this?
Any ideas will be greatly appreciated!
I have 8 bonus characters that I want to appear randomly throughout my game (there are 18 scenes)in a random order and not necessarily every time you play it, and if you click on them for the brief time they are on screen you would get a bonus.
What would be the best way to do this?
Any ideas will be greatly appreciated!
It’s not a bug – it’s an undocumented feature
Best Answer
-
jamie_c ImagineLabs.rocks Posts: 5,772
I think I'd use two random number selections to make this happen. First on each scene pick a random number say between 1 and 10 (this would give you a 10% chance of one of the characters showing up at all) then if 1 is picked, pick another random number between 1 and 8 to choose which character it is that shows up.
Like:
change attribute pickCharacter (random(1,10)
Rule:
if pickCharacter = 1
change attribute pickBonus (random(1,8)
if pickBonus =1 then show bonus character one
if pickBonus =2 then show bonus character two
if pickBonus =3 then show bonus character three
etc...
Jamie