SkillShot help

Non-platform specific questions.

SkillShot help

Postby SuperSonic » Wed Oct 06, 2010 12:58 am

Hey everybody :D

O.K. I've started developing a new game called "Skill Shot"
Now, Obviously I have a problem, and that has to do with me bieng a newbie :(

note: you might want to downlaod the file before you continue reading so that you can understand what I'm saying :wink:

So, my problem? I want the ball in the game to randomly move to the left(or right) when it is created. BUT! when it goes out of veiw I want it to randomly come back from a different position :D

So, anybody have any suggestions :roll:
Attachments
SkillShot.zip
The Game
(5.16 KiB) Downloaded 41 times
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: SkillShot help

Postby skydereign » Wed Oct 06, 2010 5:22 am

Your description sounded fine, and since I am not by a computer with gameEditor I hope this will do.

ball -> CreateActor -> Script Editor
Code: Select all
if((int)rand(2)==0)
{
    xvelocity=1;
}
else
{
    xvelocity=-1;
}


ball -> Out of Vision -> Script Editor
Code: Select all
y=view.y+rand(view.height);
xvelocity*=-1;
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: SkillShot help

Postby SuperSonic » Fri Oct 08, 2010 1:02 am

Thanks allot :D
I only have one problem......MY COMPUTER IS DOWN!!! :(
So I have to use my family's computer(and it's SLOOOOOOOOOOOOOOOOOOWWWWWWWWWWWWW) :lol:
Plus I don't have GE on it. So I geuss I can't continue developing for a while.
:( But thanks :D
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest