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

2011/12/21

Game trouble

1
2
3
4
5
6
jdemshki jdemshki

2011/12/24

#
and the lemur one is in public Lemur()
danpost danpost

2011/12/24

#
This, again, is because you have not setImage() to either of these actors, and neither has a default image set to it. To the right of the scenario right-click on the Lemur button and select 'Set image' and then import the image you want into the scenario, and press OK. Then, do the same for the Blocker (unless you are creating the images yourself, where the code to create them would be in your actor's constructors). If you already imported the image files into your scenario's 'images' folder, you just need to select them from the left of the 'set image' screen, and press OK.
jdemshki jdemshki

2011/12/24

#
that was one of the first things i did. if they are sitting in the world itself i did it right right? i mean I've tested this along the way and i can see it all.
jdemshki jdemshki

2011/12/24

#
initially(like when i first began), i set the images and pressed ok. is there something i need to do additionally?
danpost danpost

2011/12/24

#
If it shows up in your world, you did it right. Let me ponder this a few minutes (it should not take long), I would like to clear this matter up, and get you moving along. Just bear with me.
jdemshki jdemshki

2011/12/24

#
no problem haha. take as long as you need. without you i would have nothing. i really appreciate all of your help.
kiarocks kiarocks

2011/12/24

#
I got it: you don't have an image when your in the world constructor. Do it in addedToWorld.
kiarocks kiarocks

2011/12/24

#
Code:
protected void addedToWorld(World world)
{
 // image code here.
}
danpost danpost

2011/12/24

#
@kiarocks -- jdemshki is in the actor constructor and images are no problem in the constructors (location is the big problem there).
jdemshki jdemshki

2011/12/24

#
where do i put that?
danpost danpost

2011/12/24

#
OK, I was using
img = img.mirrorVertically();
but should be
img.mirrorVertically();
danpost danpost

2011/12/24

#
Tell me how it goes after change.
kiarocks kiarocks

2011/12/24

#
Oh, right.
danpost danpost

2011/12/24

#
I'll do it for you ***facepalm*** (AND for me)
jdemshki jdemshki

2011/12/24

#
the error is gone but my lemur is facing the wrong way and the bombs are coming out his butt. i adjusted the rotation of him to set him in the correct position but the bombs aren't coming out in the right direction
There are more replies on the next page.
1
2
3
4
5
6