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

2012/6/14

Greenfoot gone weird

gusbus123 gusbus123

2012/6/14

#
for some reason my greenfoot scenario is being really weird. I am not changing the code and just resetting the scenario and each time comes with a different result. Sometimes the player will die as it is supposed to, sometimes the first time its suposed to die turns into killing the monster, sometimes each monster is set to eatable in the begining. Please help me its really really weird.
erdelf erdelf

2012/6/14

#
well, give us the code and maybe we can help.
gusbus123 gusbus123

2012/6/14

#
its a huge code. ill share the whole thing and link it here. http://www.greenfoot.org/scenarios/5564 btw the code is a bit messy cause its my first program.(well second since i made another thing the other day)
gusbus123 gusbus123

2012/6/14

#
the main bug right now is that at the begining the ghosts can be eaten, the reactions of this keeps on changing each time i reset so i dno whats wrong. It fixes itself after you either eat a big pill(resets all ghosts) or eat the bugged ghost(resets just that ghost most times)
erdelf erdelf

2012/6/14

#
well, I didn't watched at your code until now ( maybe because you didn't shared it with the program. You have to press the button "share source code" in the upload window.) but I can't eat the ghost, resetted it twenty times Edit: ok. The twenty-fourth time I was be able to eat the ghosts. pls share source
gusbus123 gusbus123

2012/6/14

#
oops
gusbus123 gusbus123

2012/6/14

#
soz i cant access my scenario on these school computers. Ill re upload it at home after school.
gusbus123 gusbus123

2012/6/15

#
ok this one has the code with it http://www.greenfoot.org/scenarios/5585
gusbus123 gusbus123

2012/6/15

#
actually i think i might have fixed it. i went to my recent backup (made just before i started trying to do the death animation bit) and changed the coding for the ghosts and pacman readers. Now im not having the little glitch thing. but if u can i would still like to know why it was bugging out like that, thx.
erdelf erdelf

2012/6/15

#
I think the boolean eatable in the ghosts classes should be in the players.
gusbus123 gusbus123

2012/6/15

#
k ill take a look at that. I tried it once and i failed but ill try it again once im done with some other parts since i know a lot more than 15 days ago :P
You need to login to post a reply.