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

2017/5/25

Phantom Object

1
2
DuckGod DuckGod

2017/6/1

#
The Phantom objects don't have a shape or color its just sorta invisible and there.. and it only happens to one level. I get this feeling that I should delete it, and maybe just remake the level, and see if that works
danpost danpost

2017/6/1

#
When the scenario is paused and you right click on the phantom object and select 'Inspect' -- what is the very top title line of the inspection frame? (you may have to drag other know objects away from it, or remove them, before being able to click specifically on it)
DuckGod DuckGod

2017/6/1

#
Now I have confirmed my suspicions. It dosn't matter what the level looks like or if i remake it, it seems to only affect that certain level number because I put in a level later on in the game as a test to see if it will affect that level and it seemed to affect it, so if im right it's the case's fault
DuckGod DuckGod

2017/6/1

#
alright ima go to sleep now
danpost danpost

2017/6/1

#
In the ChoseStory class, remove line 51, which is this one:
world.currentLevel=whatLevel;
(that is done in the 'setLevel' method of the MyWorld class -- if the level number is valid) and change the 'damageStun(int)' method to this:
public void damageStun(int dmg)
{
    if (wait == 0) {wait = 1;}
}
I do not think this will fix your issue, though.
danpost danpost

2017/6/1

#
Try adding the following line to the 'cleanUp' method and see if that does anything and report back as to what, if anything, changes:
this.removeObjects(this.getObjects(Actor.class));
DuckGod DuckGod

2017/6/2

#
Well Thx for the help but seems like my suspicions were correct, i moved the level to a diffrent case and just ignored case 10 for it seemed to be completly broken, for some weird reason.
You need to login to post a reply.
1
2