Be a Supporter!

Into The Dark Depths Of Flash

  • 215 Views
  • 7 Replies
New Topic Respond to this Topic
ZadeFireLance
ZadeFireLance
  • Member since: Oct. 10, 2008
  • Offline.
Forum Stats
Member
Level 12
Programmer
Into The Dark Depths Of Flash 2009-01-08 02:25:16 Reply

Ok ive been messing around with action script and i was wondering a few things,

Does Action script come with Gravity and all that, or do you have to make a billion variables.

Ive been wanting to make a game with realistic water but i dont want to make a variable for
each spike in the wave like a gay bobber game, but idk how to make the water its own mass
where it can flow on its own,

if someone can answer this i would be very grateful
and im not trying to rip codes i just want to know how to get by
and yeah im a Freshy at Action script

flailthefox
flailthefox
  • Member since: Aug. 30, 2007
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to Into The Dark Depths Of Flash 2009-01-08 02:34:39 Reply

as far as i know, in AS2 graviuty is possible, it justs put something like gravity = 2;
but you'd have to do stuff like jumping = true ect ect ect.
gravity in actionscript 3, im not sure. i only use AS2.

the water, I have no clue about.


Destroyed.

ZadeFireLance
ZadeFireLance
  • Member since: Oct. 10, 2008
  • Offline.
Forum Stats
Member
Level 12
Programmer
Response to Into The Dark Depths Of Flash 2009-01-08 02:37:52 Reply

At 1/8/09 02:34 AM, flailthefox wrote: as far as i know, in AS2 graviuty is possible, it justs put something like gravity = 2;
but you'd have to do stuff like jumping = true ect ect ect.
gravity in actionscript 3, im not sure. i only use AS2.

the water, I have no clue about.

same i use as2 :/ i didnt even know there was a 3 haha i need to keep up with stuff
:D thank you for telling me it was possible!!!

TutorialPoo
TutorialPoo
  • Member since: Dec. 29, 2008
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to Into The Dark Depths Of Flash 2009-01-08 02:56:26 Reply

At 1/8/09 02:25 AM, ZadeFireLance wrote: Ok ive been messing around with action script and i was wondering a few things,

Does Action script come with Gravity and all that, or do you have to make a billion variables.

Ive been wanting to make a game with realistic water but i dont want to make a variable for
each spike in the wave like a gay bobber game, but idk how to make the water its own mass
where it can flow on its own,

if someone can answer this i would be very grateful
and im not trying to rip codes i just want to know how to get by
and yeah im a Freshy at Action script

Gravity isn't too hard.

var grav = 2;
var xvel = 0;
var yvel = 0;
onClipEvent (enterFrame){
          yvel+=grav;
          this.x+=xvel;
          this.y+=yvel;
}

That's simple gravity.

As for the water that's asking a lot.
But if I were you i'd look up particle engines and Box2D or APE.

ZadeFireLance
ZadeFireLance
  • Member since: Oct. 10, 2008
  • Offline.
Forum Stats
Member
Level 12
Programmer
Response to Into The Dark Depths Of Flash 2009-01-08 03:12:52 Reply

That's simple gravity.

As for the water that's asking a lot.
But if I were you i'd look up particle engines and Box2D or APE.

Thanks :D
ill check them out right away!

Superuberman69
Superuberman69
  • Member since: Sep. 23, 2007
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to Into The Dark Depths Of Flash 2009-01-08 04:34:41 Reply

At 1/8/09 02:37 AM, ZadeFireLance wrote:
same i use as2 :/ i didnt even know there was a 3 haha i need to keep up with stuff
D thank you for telling me it was possible!!!

better hurry up cause theres as4 now

UnknownFury
UnknownFury
  • Member since: Aug. 10, 2005
  • Offline.
Forum Stats
Member
Level 26
Programmer
Response to Into The Dark Depths Of Flash 2009-01-08 05:13:56 Reply

At 1/8/09 02:56 AM, TutorialPoo wrote:
At 1/8/09 02:25 AM, ZadeFireLance wrote:
Gravity isn't too hard.

var grav = 2;
var xvel = 0;
var yvel = 0;
onClipEvent (enterFrame){
yvel+=grav;
this.x+=xvel;
this.y+=yvel;
}

That's simple gravity.

As for the water that's asking a lot.
But if I were you i'd look up particle engines and Box2D or APE.

Depends on what sort of water you want. If you don't want it to move around or anything then its easy. If not, then you're probably going to want to use verlet integration. As far as I know neither of them have 'realistic water' in them. Besides, they're both for AS3.

At 1/8/09 04:34 AM, Superuberman69 wrote:
At 1/8/09 02:37 AM, ZadeFireLance wrote:
same i use as2 :/ i didnt even know there was a 3 haha i need to keep up with stuff
D thank you for telling me it was possible!!!
better hurry up cause theres as4 now

No, no, no. There isn't. You're thinking of cs4 ;)

Actionscript isn't just 'gravity;' and your character will magically have gravity applied to it. Read up on variables and basic movement and you'll be able to do it easy.

AS: Main
AS3: Main

zuperxtreme
zuperxtreme
  • Member since: Jan. 2, 2005
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to Into The Dark Depths Of Flash 2009-01-08 06:03:23 Reply

As far as I know liquids and lights are the hardest things you can program. And Flash doesn't 'come' with anything, it's just an authoring tool. You have to do everything. They just give you the tools.


BBS Signature