This site requires JavaScript, please enable it in your browser!
Greenfoot back
ProdigyF
ProdigyF wrote ...

2017/4/28

Attacking Method

ProdigyF ProdigyF

2017/4/28

#
I'm making a game where there is a knight and he attacks Minions; the Problem I am having is the removeObject method isn't working. The Class won't delete. Any Ideas on what other methods I could use to make the "Minion" get removed?
danpost danpost

2017/4/29

#
ProdigyF wrote...
I'm making a game where there is a knight and he attacks Minions; the Problem I am having is the removeObject method isn't working. The Class won't delete. Any Ideas on what other methods I could use to make the "Minion" get removed?
You never delete (or remove) a Class -- you remove a single Actor object or a List of Actor objects. The 'removeObject' method removes a single Actor object. We cannot, however, correct your code without seeing what you have.
You need to login to post a reply.