Forum Topic: Jumping on the Floor?

(196 views • 10 replies)

This topic is 1 page long.

<< < > >>
Elated

MilkMan268

Reply To Post Reply & Quote

Posted at: 3/31/09 08:57 PM

MilkMan268 NEUTRAL LEVEL 09

Sign-Up: 10/14/07

Posts: 112

Hey so I ran into this problem in my game, how do I make it that when my symbol B3 hits the bottom of the screen, it will play frame 2 inside B3 which is like a jump animation...any help, advice? How would I make an object for it to hittest off off instead maybe?


None

MilkMan268

Reply To Post Reply & Quote

Posted at: 3/31/09 09:03 PM

MilkMan268 NEUTRAL LEVEL 09

Sign-Up: 10/14/07

Posts: 112

and yes and its 550 by 400


Expressionless

mechanixnut

Reply To Post Reply & Quote

Posted at: 3/31/09 09:44 PM

mechanixnut LIGHT LEVEL 16

Sign-Up: 04/01/06

Posts: 2,297

It has to do with a hitTest on the character and the edge of the screen. The code would have to be on the character to make it easier to work. I did one of these problems a couple days ago and can't remember how I did it. I am too lazy to check and find out. If you asked a couple days ago I could have helped out quite a bit.

[As Main][The Zelda Collab]
I suffer from CRS (Can't Remember Shit)

BBS Signature

None

DawnOfDusk

Reply To Post Reply & Quote

Posted at: 3/31/09 09:49 PM

DawnOfDusk EVIL LEVEL 14

Sign-Up: 02/22/08

Posts: 1,482

if(B3.hitTest(Floor)){

B3.gotoAndStop(2);

}

:: AS2: Main :: AS3: Main :: C++: Main :: I speak German =3

BBS Signature

None

MilkMan268

Reply To Post Reply & Quote

Posted at: 3/31/09 10:46 PM

MilkMan268 NEUTRAL LEVEL 09

Sign-Up: 10/14/07

Posts: 112

Dammit Mech, work with me, but yea that code you sent me Dawn Of Dusk, Do I put it on b3, or on the main frame, I tired both, and nothing...=[


None

sasuke2910

Reply To Post Reply & Quote

Posted at: 3/31/09 11:29 PM

sasuke2910 LIGHT LEVEL 09

Sign-Up: 06/11/06

Posts: 1,659

At 3/31/09 10:46 PM, MilkMan268 wrote: Dammit Mech, work with me, but yea that code you sent me Dawn Of Dusk, Do I put it on b3, or on the main frame, I tired both, and nothing...=[

Well you put it on the main frame and you gotta do the targeting for the floor has the correct name (caps maybe?)

BBS Signature

None

Alpharius120

Reply To Post Reply & Quote

Posted at: 3/31/09 11:39 PM

Alpharius120 FAB LEVEL 14

Sign-Up: 07/08/07

Posts: 2,984

At 3/31/09 10:46 PM, MilkMan268 wrote: Dammit Mech, work with me, but yea that code you sent me Dawn Of Dusk, Do I put it on b3, or on the main frame, I tired both, and nothing...=[

Are you using AS3 or AS2? DawnOfDusk gave you AS3 code.

BBS Signature

None

MilkMan268

Reply To Post Reply & Quote

Posted at: 4/2/09 03:52 PM

MilkMan268 NEUTRAL LEVEL 09

Sign-Up: 10/14/07

Posts: 112

Oh damn Im using AS2, can anyone rewrite it for that?


None

MilkMan268

Reply To Post Reply & Quote

Posted at: 4/2/09 05:26 PM

MilkMan268 NEUTRAL LEVEL 09

Sign-Up: 10/14/07

Posts: 112

At 3/31/09 11:39 PM, Alpharius120 wrote:
At 3/31/09 10:46 PM, MilkMan268 wrote: Dammit Mech, work with me, but yea that code you sent me Dawn Of Dusk, Do I put it on b3, or on the main frame, I tired both, and nothing...=[
Are you using AS3 or AS2? DawnOfDusk gave you AS3 code.

PLEASE!


None

kiwi-kiwi

Reply To Post Reply & Quote

Posted at: 4/2/09 05:41 PM

kiwi-kiwi LIGHT LEVEL 08

Sign-Up: 03/06/09

Posts: 650

At 3/31/09 09:49 PM, DawnOfDusk wrote:

this:

if(B3.hitTest(Floor)){

B3.gotoAndStop(2);

}

is not as3
there is no hitTest in as3 only hitTestObject and hitTestPoint


None

MilkMan268

Reply To Post Reply & Quote

Posted at: 4/2/09 06:05 PM

MilkMan268 NEUTRAL LEVEL 09

Sign-Up: 10/14/07

Posts: 112

My god


All times are Eastern Standard Time (GMT -5) | Current Time: 11:04 AM

<< 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!