PDA

View Full Version : Hovering Platform



rhine
January 17th, 2005, 08:15 PM
Good Morning,

It's midnight and I should be sleeping.

In other news: I have a bit of a conumdrum for you all. My piggy can jump on a hovering platform just fine, but when it descends, he floats above it for some strange reason.

Could anyone tell me why?

SWF: http://www.rhine.ca/test/
(Use the arrow keys to move around)

FLA (MX 2004): http://www.rhine.ca/test/index.fla
FLA (MX): http://www.rhine.ca/test/index_mx.fla

Santa, the piggy and I all thank you in advance. We pray that one day our feet will touch the ground.

Ciao.

rhine
January 18th, 2005, 01:49 PM
If someone helps, I will personally make them a sandwich.

Inferno
January 18th, 2005, 02:43 PM
the flash mx file doesnt work :(

rhine
January 18th, 2005, 02:44 PM
Gadzooks! I'll fix it when I get home - sorry!

JoMan
January 18th, 2005, 02:45 PM
If someone helps, I will personally make them a sandwich.
Well, since you sweeten the deal with a sandwich :D! lol, j/k, I have been gone for a while so I didn't have anytime to get on the computer, but I did write a platform tutorial that explains platforms, enemies, items, and much more. The link is here:

http://www.kirupa.com/forum/showthread.php?t=78538


Hope that is of help to you!

P.S. Did you make all of the graphics on that game? They're good :).

peace

Inferno
January 18th, 2005, 02:53 PM
omg..
Gadzooks! was that from some movie, game? **** i cant remember where ive heard it before and it started to annoy me!! :mad:

JoMan
January 18th, 2005, 03:09 PM
Gadzooks? Wow, old term. My grandfather used to use that term :D.



Gadzooks! The coms got a virus!
peace

Inferno
January 18th, 2005, 04:02 PM
Im pretty sure ive heard it in some game with radio signals, or emotes or something like that, because everyone were spamming it.. :)

rhine
January 18th, 2005, 06:30 PM
Flashnewbi3: I just enjoy a good peppering of victorian english in my forum postings. That's all :elderly:

I re-upped the MX file here: http://www.rhine.ca/test/index_mx.fla

Hopefully this works, otherwise I'm an idiot.

Joman: Been through your entire thread at least 5 times, can't find anything that would stick in this situation. The hittest is fine and works, but it's since the platform piggy lands on is a moving platform, therein lies the rub.

Gentlemen: That sandwich is still up for grabs, what sort of fixings would you like on it if you win? Keep in mind I only have Turkey deli meat (if that's your thing).

JoMan
January 18th, 2005, 08:47 PM
Joman: Been through your entire thread at least 5 times, can't find anything that would stick in this situation. The hittest is fine and works, but it's since the platform piggy lands on is a moving platform, therein lies the rub.
Actually, with the code in my tutorial, You should be able to fix this problem. Just make sure you visit the right part: Limits and Ground testing.


Gentlemen: That sandwich is still up for grabs, what sort of fixings would you like on it if you win? Keep in mind I only have Turkey deli meat (if that's your thing).
Lol!

peace

dudley
January 18th, 2005, 08:52 PM
omg.. was that from some movie, game? **** i cant remember where ive heard it before and it started to annoy me!! :mad:it was from the old Inspector Gadget cartoons, wasn't it?

Man, why have i remembered that...?!!

JoMan
January 18th, 2005, 08:53 PM
Man, why have i remembered that...?!!It haunts us all...:skull::pa:

peace

Inferno
January 19th, 2005, 12:46 PM
im sorry, i couldnt help i did everything i could, still not working :(

rhine
January 19th, 2005, 02:26 PM
I've been reading JoMan's article, but still a bit skepticle that what I seek is in there. I'll go back and read it again and try and tinker with my script some more.

GO-GO GADGET ACTIONSCRIPT!

Inferno
January 19th, 2005, 03:01 PM
http://www.kirupa.com/forum/showthread.php?t=69442&page=8&pp=15&highlight=mario

its in that page, but I dont think it helps with your problem..

rhine
January 19th, 2005, 07:21 PM
http://www.kirupa.com/forum/showthread.php?t=69442&page=8&pp=15&highlight=mario

its in that page, but I dont think it helps with your problem.. Been through that, can't say it could help me in this situation. Nice tutorial though for sure. I've been playing around with the _y values in Piggy's hittest as the problem seems attributed to his gravity when he isn't touching a platform.

If you can beat me to the solution, I'll make you a sandwich and a glass of chocolate milk.:cowboy:

EDIT: My latest post is two posts above this one.. something wacky is happening with Kirupa's SQL server methinks...

EDIT EDIT: Nevermind.. Maybe I'm suffering from space madness.

JoMan
January 19th, 2005, 07:59 PM
I've been reading JoMan's article, but still a bit skepticle that what I seek is in there. I'll go back and read it again and try and tinker with my script some more.

GO-GO GADGET ACTIONSCRIPT!
I can't open the MX version for some reason...

rhine
January 20th, 2005, 06:11 AM
I can't open the MX version for some reason...
By Lucifer's beard!
I Re-re-upped it: http://www.rhine.ca/test/index_mx.fla

Hopefully that will work for you.


P.S. Did you make all of the graphics on that game? They're good :).
Yep! Thanks!

RyxiaN
January 22nd, 2005, 02:15 PM
I have the same problem... My Wario is hoovering: look next post...

RyxiaN
January 22nd, 2005, 02:21 PM
okay here:
www.crucialclan.1go.dk

but it is a little buggy so you must jump a few times before you can play :P

i need help with hoovering

Marz
January 22nd, 2005, 02:55 PM
Actually... Gadzooks is a clothing / apparel company here in the United States... Check it out...

http://www.gadzooks.com/

We use to have one in our mall... 'til they made their decision to go towards all womens' clothing... And then they went out of business in our locale... Morons.

Inferno
January 22nd, 2005, 03:06 PM
Ryxian A LITTLE BUGGY!? Thats just one big bug :D

JoMan
January 22nd, 2005, 05:34 PM
Well, I am feeling kinda lazy (and I just got out of a hot shower), so all that I did, was replace this:



if (_root.platform.hitTest(this._x+30, this._y+15, true)) {
if (vel_y<=1) {
fall = 0;
vel_y = 0;
jumping = false;
move = true;
}
}

with this:



for (i=1; i<50; i++) {
if (!_root.platform.hitTest(_x, _y-i, true)) {
_y -= i-3;
break;
} else if (_root.platform.hitTest(_x, _y-i, true)) {
fall = 0;
vel_y = 0;
jumping = false;
move = true;
}
}

Which is in one of my tutorials.

peace

JoMan
January 22nd, 2005, 05:36 PM
Actually... Gadzooks is a clothing / apparel company here in the United States... Check it out...

http://www.gadzooks.com/

We use to have one in our mall... 'til they made their decision to go towards all womens' clothing... And then they went out of business in our locale... Morons.
Heh, you gotta have variety, I always say C:-).

peace

RyxiaN
January 22nd, 2005, 05:51 PM
Thanks lads

RyxiaN
January 22nd, 2005, 07:05 PM
LoL, now has my enemy mouse started to hoover! Help me out?

http://www.crucialclan.1go.dk

JoMan
January 23rd, 2005, 10:20 AM
Oh! I forgot to say that the code that I wrote was aimed toward rhine's platform trouble.

peace

rhine
January 23rd, 2005, 12:27 PM
Oh! I forgot to say that the code that I wrote was aimed toward rhine's platform trouble.

peace

It works!

Couldn't rustle up any chocolate milk so I hope just the sandwich is okay:
http://www.rhine.ca/thanks/thanks.jpg

...mustard is hard to write with.

Inferno
January 23rd, 2005, 12:55 PM
Omg.. When I first read that i thought you write "Hank Jo You Man" :D

But it looks delicous :pleased:

JoMan
January 23rd, 2005, 03:01 PM
Lol! Thanks man ^^ *eats sandwich*

peace

RyxiaN
January 23rd, 2005, 04:25 PM
Oh! I forgot to say that the code that I wrote was aimed toward rhine's platform trouble.

peace

But can you help me make so my mouse will stop hover?

JoMan
January 23rd, 2005, 05:21 PM
But can you help me make so my mouse will stop hover?

Can you show me the fla?

peace

RyxiaN
January 23rd, 2005, 05:28 PM
www.crucialclan.1go.dk/game.fla

JoMan
January 23rd, 2005, 07:16 PM
Honestly, I have absolutely no clue where the mouse's collision is, because the code is scattered everywhere. You might want to consider putting the code in neat, labeled functions in the frame.

peace