random apparition

  • #1, by jetsetwillyMonday, 05. May 2014, 23:10 11 years ago
    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,

    Newbie

    69 Posts


  • #2, by esmeraldaTuesday, 06. May 2014, 09:03 11 years ago
    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.

    Key Killer

    533 Posts

  • #3, by jetsetwillyWednesday, 07. May 2014, 11:53 11 years ago
    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?

    Newbie

    69 Posts

  • #4, by afrlmeWednesday, 07. May 2014, 15:03 11 years ago
    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
    

    Imperator

    7285 Posts