USERNAME:
PASSWORD:
Save Info!
Logging in…
This topic is 1 page long.
[ Profile | Posts | Contact ]
Posted at: 3/31/09 08:57 PM
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?
Posted at: 3/31/09 09:03 PM
and yes and its 550 by 400
Posted at: 3/31/09 09:44 PM
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)
Posted at: 3/31/09 09:49 PM
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
Posted at: 3/31/09 10:46 PM
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...=[
Posted at: 3/31/09 11:29 PM
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?)
Posted at: 3/31/09 11:39 PM
Sign-Up: 07/08/07
Posts: 2,984
Are you using AS3 or AS2? DawnOfDusk gave you AS3 code.
Posted at: 4/2/09 03:52 PM
Oh damn Im using AS2, can anyone rewrite it for that?
Posted at: 4/2/09 05:26 PM
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!
Posted at: 4/2/09 05:41 PM
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
Getting bored? View my art, Read a story or visit the Programming Forum Projects page
Posted at: 4/2/09 06:05 PM
My god
All times are Eastern Standard Time (GMT -5) | Current Time: 11:04 AM
<< Back