Problem mit Test Chance

  • Problem mit Test Chance

    Ich hab ein object, und dieses sollte Immer in einem Abstand von 300 ein object mit der chance 1 zu 55-chance. (chance ist ne variable, die alle 1000 um 1 steigt)

    Komischerweise produziert das object schon am Anfang massenhaft viele dieser Objecte?

    Kann mir da jemand weiterhelfen? Thx für antworten.
  • So:

    Create Event:

    set Alarm 0 to 300

    set variable zu to 0

    set Alarm 1 to 1000

    Alarm Event for alarm 0:

    set Alarm 0 to 300

    with a chance of 1 out of 10-zu do perform the next action

    create instance of object Gegner1 at relative position (0,0)

    with a chance of 1 out of 30-zu do perform the next action

    create instance of object Gegner1 at relative position (0,0)

    with a chance of 1 out of 50-zu do perform the next action

    create instance of object Gegner2 at relative position (0,0)

    with a chance of 1 out of 55-zu do perform the next action

    create instance of object Gegner3 at relative position (0,0)

    with a chance of 1 out of 60-zu do perform the next action

    create instance of object Gegner4 at relative position (0,0)

    with a chance of 1 out of 80-zu do perform the next action

    create instance of object Gegner5 at relative position (0,0)

    Alarm Event for alarm 1:

    set variable zu relative to 1

    set Alarm 1 to 1000
  • Ganz einfach, die Chance ist selbst jetzt einfach noch relativ hoch.
    Setze ein "else" hinter jeden Block(ausser beim letzten) und erhöhe die Chance-Zahlen.
    "das war meine letzte flamewar PM an dich ."
  • Benutzer online 1

    1 Besucher