Page 1 of 1

SkillShot help

PostPosted: Wed Oct 06, 2010 12:58 am
by SuperSonic
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:

Re: SkillShot help

PostPosted: Wed Oct 06, 2010 5:22 am
by skydereign
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;

Re: SkillShot help

PostPosted: Fri Oct 08, 2010 1:02 am
by SuperSonic
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