Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[C# XNA] Wieso macht jeder Gegner das gleiche?

Empfohlene Antworten

Veröffentlicht

Hi Fachinformatiker,

Ich hab das problem das alle meine erstellten Gegner in meinem Spiel das gleiche machen, z.B. wenn der Player in den Aggrobereich des Gegner1 kommt dann gehen alle gegner die gezeichnet worden sind aggro und das sollte so nicht sein. Klar irgendwie ist es logisch das alle das gleiche machen wenn ich das mit "foreach" mache.

Aber in dem Tutorial XNA Creators Club Online - beginner's guide 2d: chapter 4 - drawing the background funktioniert das auch das immer nur ein Gegner weg ist und nicht alle wenn einer getroffen wird. (die machen das auch mit foreach)

Vielleicht hat wer lust sich das Tutorial anzuschauen und mir zu sagen wo da der punkt ist das nur einer von den Gegner gekillt wird.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.