Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

random apparition

  • #1, by jetsetwilly 12 years ago Zitieren
    so , ich versuche deutsch an Stadt english fur ein mal, vieleicht besser.
    ich habe meinen main character wie geht in eine Zimmer, draussen hört man ein man wie lauft( foot steps fx) , jedes mal wie der sounds spielt ich wurde 25% of chance das ein mann komm herein in der Zimmer,
  • #2, by esmeralda 12 years ago Zitieren
    you want to create a chance of 25 % for a man to enter a room? Use values. Create a value between, say 1 - 4 and call an action to set a random value. If the value is =1 then enter the room.
  • #3, by jetsetwilly 12 years ago Zitieren
    if the sound" footstep" is playing.
    wait 5 second
    play random value & to 4
    if value is 1 make visible character 2
    else
    do nothing
    something like that?
  • #4, by afrlme 12 years ago Zitieren
    yeah more or less. smile
    pause 5s (or 5000ms)
    set value 'value_name' random between 1 to 4
    if value 'value_name' is 1
     -- add actions to make character visible here
    end if