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

2012/12/12

Help with objects above Actor.

Sergio Sergio

2012/12/12

#
I'm creating a game where it's possible to pick up and drop objects that are randomly placed on the map. It's a top view game and for a more pleasant gameplay it's possible to walk over the objects with your character. However, the character doesn't walk OVER the objects but UNDER the objects.This is because the objects are placed after the character is placed ( which is placed at the beginning ) so when I cross an object the character partly disappears beneath the object. I thought about replacing the character image very act but then I wouldn't be able to animate the walk. Is there any way to fix this?
danpost danpost

2012/12/12

#
Replacing the character image would not accomplish that. Removing and replacing the character from the world would; however, it would be more appropriate to use the World class method designed to accomplish this task (refer to the World class documentation in Greenfoot).
Sergio Sergio

2012/12/12

#
Didn't know this method existed, thanks mate I fount it and it really helped!
You need to login to post a reply.