Ich arbeite derzeit an einem Projekt in MIT App Inventor. Ich soll eine App entwickeln und habe mich für ein Spiel entschieden. Ich brauche Gegner mit zufälligen Bewegungen innerhalb eines Bereiches. Ich habe viel probiert, doch nur ein Ansatz hat meinen Wunsch erfüllt. Dafür brauche ich Bälle. Ich habe aber mehrere Gegner und möchte sie nicht immer einzeln ansprechen, weshalb ich sie in einer Liste zusammengefasst habe. Ich möchte nun, dass jedem Gegner, ein Ball zugewiesen wird, und dieser Ball kann nicht zu einem anderen Gegner zugewiesen werden. Ich habe lange probiert, aber ich finde keine Lösung. Kann mir jemand helfen?
Items aus Listen zuweisen?
App,
App Inventor 2