Page 1 of 1

path problem: Shake screen

PostPosted: Sat Sep 10, 2005 3:43 pm
by Chai
the problem is, when i create the path in the first time,I can see the liner.
But when I want to edit it again, the line between 2-3 balls is disappeared, i can't see the Liner (Actually, I can see small dots and it's not clearly like the first one which is THE LINE between balls)

It effects to my game as I want to make a vibrated screen. Yes, I can do vibrate right now. But the screen isn't come back to the original place when the screen is stop vibrating, NO PATH.

1st I create a path as a below picture. and mark the path to come back to the same as the original position.
Image
Then, after I find that my game screen is vibrating and doesn't come back to the original position. So, I come to check the path again. and I find that
the path has something wrong. The line between 2 balls becomes dots. !
Image


Game editro PRO 1.3.1
Win XP
Pocket PC : XDAII and Ipaq 1940

PostPosted: Sat Sep 10, 2005 5:31 pm
by Game A Gogo
Let me tell you why...
1.(for the screen shaking) be shure that the last nod(Big dot) of your path is in the exact place as the fist one.

2.(the white dot problem)The little dot show the place where the object will be in each frame, in other word its the frames(Depending on how much you put in the frame section when you create the path)

hope that will help you...

Re: path problem: Shake screen

PostPosted: Sat Sep 10, 2005 5:35 pm
by Game A Gogo
Chai wrote:Then, after I find that my game screen is vibrating and doesn't come back to the original position. So, I come to check the path again. and I find that
the path has something wrong. The line between 2 balls becomes dots. !


and the "LINE" is not relly that, its only dots that are relly close. Thats all :wink:

PostPosted: Sat Sep 10, 2005 11:27 pm
by Joshua Worth
I got mine to work by pressing shift. It works with path editing too!

PostPosted: Sun Sep 11, 2005 2:47 am
by BeyondtheTech
Create a Real variable called shake.

In the View (or other main actor), create a Draw Actor event with the following:
Code: Select all
if (shake>0)
{
    if (shake>10) shake=10;
    view.x=saved_x+rand(shake)-rand(shake);
    view.y=saved_y+rand(shake)-rand(shake);
    shake-=0.05;
    if (shake<=0) { view.x=saved_x; view.y=saved_y; }
}


When an explosion or anything that would cause a screen shake to happen, use this command:
Code: Select all
shake+=5;


A couple of notes:
1. You have to know where the current position of the view is, and save it into the saved_x and saved_y variables.
2. If the shake takes too long to dissipate, change the subtracting value of 0.05 and increase it.
3. Shaking more than 10 pixels may be too much for the viewer to handle, but adjust it to your own taste.

Really thank you

PostPosted: Sun Sep 11, 2005 5:51 am
by andysmiling
Thank you all guys. It works!
Here is What I do.

Path

1 -> 2 -> 3->
Then put the Path 4 in the same position as path 2
Then put the Path 5 in the same position as path 1
Then put the Path 6 in the same position as path 3

Thank you all you guys.

My new game should be launched in 2 days. :)

Here's the related topic. ( Problem solved)

PostPosted: Sun Sep 11, 2005 5:52 am
by andysmiling
http://game-editor.com/forum/viewtopic.php?p=5680#5680

Thank you all you guys.

Especiall, beyoondthetech, you are really the generous guy. :)

PostPosted: Tue Sep 13, 2005 9:13 pm
by ondy1985
BeyondtheTech wrote:
Code: Select all
if (shake>0)
{
    if (shake>10) shake=10;
    view.x=saved_x+rand(shake)-rand(shake);
    view.y=saved_y+rand(shake)-rand(shake);
    shake-=0.05;
    if (shake<=0) { view.x=saved_x; view.y=saved_y; }
}


I like the code! If you agree, I will use it in my game. Just tell me your full name and I will mention you in Credits.

PostPosted: Tue Sep 13, 2005 10:38 pm
by BeyondtheTech
Raphael Salgado, but everyone just calls me Booger.

hehe

PostPosted: Tue Sep 13, 2005 11:20 pm
by Game A Gogo
Why?!?!?!...me its Dumbo.

PostPosted: Wed Sep 14, 2005 6:26 pm
by ondy1985
BeyoundtheTech> can I write Raphael "Booger" Salgado? :)

PostPosted: Tue Nov 22, 2005 5:55 am
by BeyondtheTech
I hope you know I was joking.

PostPosted: Fri Nov 25, 2005 6:25 pm
by ondy1985
BeyondtheTech wrote:I hope you know I was joking.

Oh, were you? So what should I write in credits? Not hoping to release the game soon, but... once! And... I already wrote Raphael "Booger" Salgado into the Trial version credits ;)

PostPosted: Fri Nov 25, 2005 10:25 pm
by BeyondtheTech
Just "Raphael Salgado" will do. Thanks. :D

PostPosted: Sat Nov 26, 2005 11:28 am
by ondy1985
BeyondtheTech wrote:Just "Raphael Salgado" will do. Thanks. :D

Will be.