I got hit by a flying saucer and reappeared behind it 3 times, spending all my lives. There should be a few invincible moments available if you get hit to get back to safety.
ummm...im having trouble loading levels based on passwords...
someone please help?
the Actor TextField sets the text based on what is typed by the user..
then Load1 checks if the TextField's text is equal to a password (in the MyWorld class(
even when the password and text variables are the same it doesnt load the level!
A new version of this scenario was uploaded on Tue Nov 24 01:08:43 UTC 2009
Not if you would fix some gitches, including the fact that after you are hit you often reappear on top of a martian, and you still get hit when a martian goes completely off the screen and you move to his position.
Are you overriding setLocation to get the martians to go smoothly off the screen? If so, Grenfoot's collision detection (which does bounds checking even if you override setLocation) system still thinks the martian is pressed against the left side even if he's far off the screen, so you get a false collision.
yes i am overriding setLocation for the martians..
but i use this code to get them of the screen:
if(getY() >= 0)
{
setLocation(getWorld().getWidth()+100, getY());
}
would that be right?
that goes in the martian class....
i meant to say getX() not getY()..
when the Martians are at the left side of the screen, they appear a certain distance away from the right side of the screen...
and is this related enough to the theme?
2009/11/23
2009/11/23
2009/11/23
2009/11/23
2009/11/24
2009/11/24
2009/11/24
2009/11/24
2009/11/24
2009/11/24
2009/11/27
2009/11/27
2009/11/28
2009/11/28
2009/11/29
2009/11/29
2009/11/29