Page 1 of 1
I need some help
Posted:
Sat Nov 20, 2010 12:20 am
by RippeR7420
In a game like block breaker,(where you control the platform and use the ball to break all of the bricks) If you lose a ball, How do you make it so another re-spawns?
Re: I need some help
Posted:
Sat Nov 20, 2010 12:27 am
by skydereign
You either create a new one with CreateActor, or on the out of vision event (or a collision with a region), you set the ball's xy to the center of the view.
ball -> Out of Vision -> Script Editor
- Code: Select all
x=view.x+view.width/2;
y=view.y+view.height/2;
Re: I need some help
Posted:
Sat Nov 20, 2010 12:48 am
by RippeR7420
Thanks for the tip
but what Im trying to do is make it so when you lose a ball, A new ball will start off on the platform..
Re: I need some help
Posted:
Sat Nov 20, 2010 12:51 am
by skydereign
Oh yeah, its been a while since I played those games. Well, you'd create the ball in front of the paddle then. I assume you have some state that makes the ball follow the paddle around, if not tell me, as this assumes you have some variable controlling that.
ball -> Out of Vision -> Script Editor
- Code: Select all
x=paddle.x;
y=paddle.y-paddle.height;
ballState=0; // the follow paddle state
Re: I need some help
Posted:
Sun Nov 21, 2010 9:16 am
by RippeR7420
how do I upload a file that is 9mb?
I want to upload it and let you take a look at it for me
Re: I need some help
Posted:
Sun Nov 21, 2010 9:23 am
by skydereign
You'll have to use the java uploader. That or upload it to a file hosting site, and post the link.
Re: I need some help
Posted:
Sun Nov 21, 2010 6:45 pm
by RippeR7420
heres the exported version of it..
Re: I need some help
Posted:
Mon Nov 22, 2010 12:53 am
by RippeR7420
ahhh, so would I just export in Linux Exe. format?
Re: I need some help
Posted:
Mon Nov 22, 2010 1:05 pm
by NightOfHorror
Yup, so pretty much when you export the game click on the bottom tab and a list of exe format appear
Re: I need some help
Posted:
Mon Nov 22, 2010 3:26 pm
by RippeR7420
Alright, Maybe I'm doing something wrong, But it keeps telling me "The extension is not allowed."
What does mean?? Haha sorry for sounding so... Noobish right now..
Re: I need some help
Posted:
Mon Nov 22, 2010 7:27 pm
by lcl
RippeR7420 wrote:Alright, Maybe I'm doing something wrong, But it keeps telling me "The extension is not allowed."
What does mean?? Haha sorry for sounding so... Noobish right now..
Are you sure you have the newest version of GE?
In the old demo version (where there is that "made with game editor" -thing in exported games) it is not possible to export on some platforms.
Might be that linux is one of them.