The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.39 / 5.00 38,635 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 15,161 ViewsOk 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
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.
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!!!
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.
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!
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 stuffD thank you for telling me it was possible!!!
better hurry up cause theres as4 now
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:better hurry up cause theres as4 now
same i use as2 :/ i didnt even know there was a 3 haha i need to keep up with stuffD thank you for telling me it was possible!!!
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 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.