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

2011/12/13

enemies

jonnyo98 jonnyo98

2011/12/13

#
is it possoble to make an enemy eat two different objects?
darkmist255 darkmist255

2011/12/13

#
Yes, just copy and past the code for the first object, and swap in the name of the new object. Repeat that for each type. If you're a little more advanced, you can make a new actor called "eatableObjects" (for example) and then for the "extends actor" part of your actors write "extends eatableObjects". This way you should be able to do it by writing eatableObjects as the object.
jonnyo98 jonnyo98

2011/12/13

#
ok thx
darkmist255 darkmist255

2011/12/13

#
Yourwelcome :D! Tell me how it works.
jonnyo98 jonnyo98

2011/12/14

#
it worked
darkmist255 darkmist255

2011/12/14

#
Great!
You need to login to post a reply.