Etwas 40 mal ausführen?

  • GM 8

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Etwas 40 mal ausführen?

    Wie kann ich diesen Code 40 mal ausführen oder vereinfachen?:

    GML-Quellcode

    1. B=0
    2. H=0
    3. instance_create(0+B,0+H,obj_Fog)
    4. H+=16
    5. instance_create(0+B,0+H,obj_Fog)
    6. H+=16
    7. instance_create(0+B,0+H,obj_Fog)
    8. H+=16
    9. instance_create(0+B,0+H,obj_Fog)
    10. H+=16
    11. instance_create(0+B,0+H,obj_Fog)
    12. H+=16
    13. instance_create(0+B,0+H,obj_Fog)
    14. H+=16
    15. instance_create(0+B,0+H,obj_Fog)
    16. H+=16
    17. instance_create(0+B,0+H,obj_Fog)
    18. H+=16
    19. instance_create(0+B,0+H,obj_Fog)
    20. H+=16
    21. instance_create(0+B,0+H,obj_Fog)
    22. H+=16
    23. instance_create(0+B,0+H,obj_Fog)
    24. H+=16
    25. instance_create(0+B,0+H,obj_Fog)
    26. H+=16
    27. instance_create(0+B,0+H,obj_Fog)
    28. H+=16
    29. instance_create(0+B,0+H,obj_Fog)
    30. H+=16
    31. instance_create(0+B,0+H,obj_Fog)
    32. H+=16
    33. instance_create(0+B,0+H,obj_Fog)
    34. H+=16
    35. instance_create(0+B,0+H,obj_Fog)
    36. H+=16
    37. instance_create(0+B,0+H,obj_Fog)
    38. H+=16
    39. instance_create(0+B,0+H,obj_Fog)
    40. H+=16
    41. instance_create(0+B,0+H,obj_Fog)
    42. H+=16
    43. instance_create(0+B,0+H,obj_Fog)
    44. H+=16
    45. instance_create(0+B,0+H,obj_Fog)
    46. H+=16
    47. instance_create(0+B,0+H,obj_Fog)
    48. H+=16
    49. instance_create(0+B,0+H,obj_Fog)
    50. H+=16
    51. instance_create(0+B,0+H,obj_Fog)
    52. H+=16
    53. instance_create(0+B,0+H,obj_Fog)
    54. H+=16
    55. instance_create(0+B,0+H,obj_Fog)
    56. H+=16
    57. instance_create(0+B,0+H,obj_Fog)
    58. H+=16
    59. instance_create(0+B,0+H,obj_Fog)
    60. H+=16
    61. instance_create(0+B,0+H,obj_Fog)
    62. H+=16
    63. B+=16
    Alles anzeigen

    Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von Rohkar ()

  • GML-Quellcode

    1. repeat(40){
    2. repeat(30){
    3. instance_create(0+B,0+H,obj_Fog)
    4. H+=16
    5. }
    6. B+=16
    7. }


    Spricht mehr als tausend Worte.
    edit: Ersta! :P

    -Tobi97