ich hab ein Problem mit Maps und weiß nicht mehr, was ich noch ändern kann...
Manchmal - aber halt nicht immer - stürzt das Programm ab und als Fehlermeldung bekomme ich, dass Plot() außerhalb des Zeichenbereiches ist.
Ich hoffe ihr könnt mir helfen
Code:
Code: Alles auswählen
Structure Bullet
  X.l
  Y.l
  Type.l
  Dir.l
EndStructure
NewMap Bullets.Bullet()
[...]
Repeat
[...]
ForEach Bullets()
    If Bullets()\X > 298 Or Bullets()\X < 1 Or Bullets()\Y > 167 Or Bullets()\Y < 1
      DeleteMapElement(Bullets(),MapKey(Bullets()))
    EndIf
  Next Bullets()
  
  ForEach Bullets()
    
    If Bullets()\Dir = 1
      Bullets()\X+1
    ElseIf Bullets()\Dir = 2
      Bullets()\X-1
    ElseIf Bullets()\Dir = 2
      Bullets()\Y-1
    ElseIf Bullets()\Dir = 2
      Bullets()\Y+1
    EndIf
    StartDrawing(ScreenOutput())
    Plot(Bullets()\X,Bullets()\Y,RGB(200,200,200))
    StopDrawing()
Next Bullets()
[...]
ForEverAbraham0607
