path problem: Shake screen

Non-platform specific questions.

path problem: Shake screen

Postby Chai » Sat Sep 10, 2005 3:43 pm

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
User avatar
Chai
 
Posts: 361
Joined: Sat Apr 30, 2005 2:26 pm
Location: Thailand
Score: 30 Give a positive score

Postby Game A Gogo » Sat Sep 10, 2005 5:31 pm

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...
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: path problem: Shake screen

Postby Game A Gogo » Sat Sep 10, 2005 5:35 pm

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:
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby Joshua Worth » Sat Sep 10, 2005 11:27 pm

I got mine to work by pressing shift. It works with path editing too!
Stay sweet
User avatar
Joshua Worth
 
Posts: 515
Joined: Tue Jul 19, 2005 12:00 am
Location: Stralia
Score: 5 Give a positive score

Postby BeyondtheTech » Sun Sep 11, 2005 2:47 am

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.
User avatar
BeyondtheTech
 
Posts: 270
Joined: Wed Mar 30, 2005 6:34 am
Location: Edison, NJ
Score: 4 Give a positive score

Really thank you

Postby andysmiling » Sun Sep 11, 2005 5:51 am

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. :)
andysmiling
 
Posts: 22
Joined: Sat Aug 20, 2005 6:37 am
Score: 0 Give a positive score

Here's the related topic. ( Problem solved)

Postby andysmiling » Sun Sep 11, 2005 5:52 am

http://game-editor.com/forum/viewtopic.php?p=5680#5680

Thank you all you guys.

Especiall, beyoondthetech, you are really the generous guy. :)
andysmiling
 
Posts: 22
Joined: Sat Aug 20, 2005 6:37 am
Score: 0 Give a positive score

Postby ondy1985 » Tue Sep 13, 2005 9:13 pm

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.
Image

Motto: "I never let my schooling interfere with my education" --- Mark Twain
User avatar
ondy1985
 
Posts: 99
Joined: Thu May 05, 2005 7:43 pm
Location: Slovakia
Score: 1 Give a positive score

Postby BeyondtheTech » Tue Sep 13, 2005 10:38 pm

Raphael Salgado, but everyone just calls me Booger.

hehe
User avatar
BeyondtheTech
 
Posts: 270
Joined: Wed Mar 30, 2005 6:34 am
Location: Edison, NJ
Score: 4 Give a positive score

Postby Game A Gogo » Tue Sep 13, 2005 11:20 pm

Why?!?!?!...me its Dumbo.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby ondy1985 » Wed Sep 14, 2005 6:26 pm

BeyoundtheTech> can I write Raphael "Booger" Salgado? :)
Image

Motto: "I never let my schooling interfere with my education" --- Mark Twain
User avatar
ondy1985
 
Posts: 99
Joined: Thu May 05, 2005 7:43 pm
Location: Slovakia
Score: 1 Give a positive score

Postby BeyondtheTech » Tue Nov 22, 2005 5:55 am

I hope you know I was joking.
User avatar
BeyondtheTech
 
Posts: 270
Joined: Wed Mar 30, 2005 6:34 am
Location: Edison, NJ
Score: 4 Give a positive score

Postby ondy1985 » Fri Nov 25, 2005 6:25 pm

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 ;)
Image

Motto: "I never let my schooling interfere with my education" --- Mark Twain
User avatar
ondy1985
 
Posts: 99
Joined: Thu May 05, 2005 7:43 pm
Location: Slovakia
Score: 1 Give a positive score

Postby BeyondtheTech » Fri Nov 25, 2005 10:25 pm

Just "Raphael Salgado" will do. Thanks. :D
User avatar
BeyondtheTech
 
Posts: 270
Joined: Wed Mar 30, 2005 6:34 am
Location: Edison, NJ
Score: 4 Give a positive score

Postby ondy1985 » Sat Nov 26, 2005 11:28 am

BeyondtheTech wrote:Just "Raphael Salgado" will do. Thanks. :D

Will be.
Image

Motto: "I never let my schooling interfere with my education" --- Mark Twain
User avatar
ondy1985
 
Posts: 99
Joined: Thu May 05, 2005 7:43 pm
Location: Slovakia
Score: 1 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron