Topic: Thanks a lot Steve.... (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=11221" title="Pages that link to Topic: Thanks a lot Steve.... (Page 1 of 1)" rel="nofollow" >Topic: Thanks a lot Steve.... <span class="small">(Page 1 of 1)</span>\

 
kretsminky
Maniac (V) Inmate

From: A little lower... lower... ahhhhhh, thats the spot
Insane since: Jun 2000

posted posted 09-24-2001 04:53

Now you've got me hooked on this Flash stuff.
http://www.krets.net/sintest.html

Been playin with that OOP stuff you put in that tutorial. Great stuff!

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 09-24-2001 05:33

Didn't seem to work for me... the plane doesn't move from the left hand side of the screen.

Gix
Paranoid (IV) Inmate

From: delucia
Insane since: Jun 2001

posted posted 09-24-2001 05:38

slime, I believe you didn't put in any variables for windresistance and vert accel... the plane moves after you fill those boxes in. It looks like a cool experiment you did there krets, I'll have to download the trial now.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 09-24-2001 06:01

Oh, ok, i got it... is it just me or does changing vertical acceleration not change that much?

kretsminky
Maniac (V) Inmate

From: A little lower... lower... ahhhhhh, thats the spot
Insane since: Jun 2000

posted posted 09-24-2001 06:38

It doesn't change that much unless you enter a fairly large number. The sine function builds on itself gradually so try entering a number around 40 or so.

Oh, and I screwed up the script once messing with it but didn't notice before I uploaded and thats probably when you caught it Slime.

All fixed now, what fuN!

Steve
Maniac (V) Inmate

From: Boston, MA, USA
Insane since: Apr 2000

posted posted 09-24-2001 12:49

Heh. I put in 20 and 40 respectively and had to run for an air sickness bag.


Pretty cool. How's a sine function involved in all this .... turbulence?

kretsminky
Maniac (V) Inmate

From: A little lower... lower... ahhhhhh, thats the spot
Insane since: Jun 2000

posted posted 09-24-2001 15:19

I just wanted to do something simple to try out some different math functions so I used

changeY = Math.sin(changeX)*Yspeed;

Where Yspeed is the variable passed from the form.

Incidentally, what's the correct syntax for using the exp operator? I couldn't figure that one out to save my life....

Steve
Maniac (V) Inmate

From: Boston, MA, USA
Insane since: Apr 2000

posted posted 09-24-2001 18:22

From the online ActionScript dictionary:

quote:
Math.exp

Math.exp(x);

Arguments

x The exponent; a number or expression.

Description

Method; returns the value of the base of the natural logarithm (e), to the power of the
exponent specified in the argument x.



Easy as PI

What were you attempting to accomplish with an exponent?

kretsminky
Maniac (V) Inmate

From: A little lower... lower... ahhhhhh, thats the spot
Insane since: Jun 2000

posted posted 09-24-2001 18:29

Ohhhhh, I see.

I was looking to raise a variable to a certain power. Like Xspeed^5 would that work in Flash or would I just need to multiply Xspeed by itself 5 times?

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 09-24-2001 18:34

huhu. my plane moves to the middle of the screen, then stops, and slowly goes down.
what plane can stand still in the air? a new invention krets?

kretsminky
Maniac (V) Inmate

From: A little lower... lower... ahhhhhh, thats the spot
Insane since: Jun 2000

posted posted 09-24-2001 18:46

Its the new "hover-biplane."

Its a strictly top-secret invention of Cessna. Now I'll have to kill you.

Steve
Maniac (V) Inmate

From: Boston, MA, USA
Insane since: Apr 2000

posted posted 09-24-2001 19:48

Krets:
Math.exp returns a natural logarithm - a constant, "e" which people much smarter than I need to explain to you.
For your problem : Xspeed^5 , use the Math.pow(x, y);

where: x is the number and y is the power

example Math.pow(Xspeed, 5);

Give it a try. For testing just plug in easy values like 10 and 2. I use the trace function a LOT to debug. So for example, a line:

trace(Math.pow(10, 2));

should pop up a window with 100 in it.

Then change the trace to
trace(Math.pow(Xspeed, 5));

and see what comes up. Get friendly with trace(); - all manner of frustrating bugs can arise because you think something is going to happen and it doesn't. trace can show you if the variable you *think* are there really are.

[This message has been edited by Steve (edited 09-24-2001).]

kretsminky
Maniac (V) Inmate

From: A little lower... lower... ahhhhhh, thats the spot
Insane since: Jun 2000

posted posted 09-24-2001 20:42

he he This flash is fun shit.

I'm trying to reproduce your elastic deal but I couldn't get the drag function to work correctly to initiate it so I just stuck a button in there and used that. I forgot to take the drag function off the object though so now after I click the button and snap it into place the damn thing tries to follow my cursor around but it can't because its got that elastic thing goin on. LOL

Looks like a chained guard dog.

Wheeeeeeeeeeeeeeeee! You can't get me puppy!



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu