Forum Topic: lalala ActionScript 2.0

(134 views • 8 replies)

This topic is 1 page long.

<< < > >>
Expressionless

shikamaru-nara

Reply To Post Reply & Quote

Posted at: 6/8/09 08:15 AM

shikamaru-nara NEUTRAL LEVEL 06

Sign-Up: 01/17/07

Posts: 135

I need proper codes for jumping that wont make whatever is jumping to sink into the floor or make it look a like rubber ball, bouncing up and down all the time.

Yes, ive tried tutorials, but those codes make stuff act like mentioned above, and that sucks.

As long as I get something that makes my character (or whatever) to jump and NOT sink into the floor, I'm happy.

Post code as is, I'll change it to how I want it later.

AS3 makes me shit myself.


None

AntoArts-Admin

Reply To Post Reply & Quote

Posted at: 6/8/09 08:18 AM

AntoArts-Admin LIGHT LEVEL 15

Sign-Up: 08/24/06

Posts: 980

So you want someone else to write a code for you?

Did you actually read those tutorials, and make sure you did everything correct?


None

shikamaru-nara

Reply To Post Reply & Quote

Posted at: 6/8/09 08:24 AM

shikamaru-nara NEUTRAL LEVEL 06

Sign-Up: 01/17/07

Posts: 135

At 6/8/09 08:18 AM, AntoArts-Admin wrote: So you want someone else to write a code for you?

In a way, yes.

At 6/8/09 08:18 AM, AntoArts-Admin wrote: Did you actually read those tutorials, and make sure you did everything correct?

lalala ActionScript 2.0

AS3 makes me shit myself.


None

Denvish

Reply To Post Reply & Quote

Posted at: 6/8/09 08:56 AM

Denvish DARK LEVEL 45

Sign-Up: 04/25/03

Posts: 16,238

Find the bit of code that checks for floor contact, if it comes back as true then move the character upwards by enough to make him stand on the surface.

- - Flash - Music - Images - -

BBS Signature

None

shikamaru-nara

Reply To Post Reply & Quote

Posted at: 6/8/09 08:59 AM

shikamaru-nara NEUTRAL LEVEL 06

Sign-Up: 01/17/07

Posts: 135

At 6/8/09 08:56 AM, Denvish wrote: Find the bit of code that checks for floor contact, if it comes back as true then move the character upwards by enough to make him stand on the surface.

Been tried.
_y coordinates below surface depends on drop-height so that requires more brainpower than I can provide.

AS3 makes me shit myself.


None

Yambanshee

Reply To Post Reply & Quote

Posted at: 6/8/09 01:44 PM

Yambanshee DARK LEVEL 10

Sign-Up: 10/05/08

Posts: 1,425

droping 'into' the ground is a easy fix.

while(/*ground hittest*/){
char._y --
}

AS2||AS3||Motox
Thanks to hdxmike for the sig :]

BBS Signature

None

shikamaru-nara

Reply To Post Reply & Quote

Posted at: 6/8/09 02:32 PM

shikamaru-nara NEUTRAL LEVEL 06

Sign-Up: 01/17/07

Posts: 135

At 6/8/09 01:44 PM, Yambanshee wrote: droping 'into' the ground is a easy fix.

while(/*ground hittest*/){
: char._y --
: }

That'll make the MC bounce (which is not wanted).

AS3 makes me shit myself.


None

Schmastalukas

Reply To Post Reply & Quote

Posted at: 6/8/09 03:17 PM

Schmastalukas NEUTRAL LEVEL 17

Sign-Up: 10/22/07

Posts: 393

Nope. No it won't. Try it.

Winning = failing at failing
Failing at failing = failing
Therefore... Winning = failing

BBS Signature

None

shikamaru-nara

Reply To Post Reply & Quote

Posted at: 6/8/09 03:54 PM

shikamaru-nara NEUTRAL LEVEL 06

Sign-Up: 01/17/07

Posts: 135

At 6/8/09 03:17 PM, Schmastalukas wrote: Nope. No it won't. Try it.

I've tried that with every jumping-script, and it has never worked like I wanted it to

AS3 makes me shit myself.


All times are Eastern Standard Time (GMT -5) | Current Time: 04:19 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!