Ball Platform Game

NintenDan

Well-Known Member
Full GL Member
Credits
521
This is a result from more experimentation that started after I finished up the Kirby. This ball thing has what I think is much more easier coding. It took a while to readjust, but I think I've got the hang of it. Once I fix the problem I've got with collisions UNDERNEATH the platforms, I'll be happy to start mucking around and recreating my Kirby.

By the way, the problem with the collisions is the fact that the ball won't bounce back after hitting the bottom of platforms from a certain point. You'll notice the first platform is fine, the ball bounces off the bottom of it. As you continue, you'll see the second platform is good too. However, if you travel left after passing the second platform and touch the bottom, you'll just jump through. Do some more experimenting and you'll see that when you go as far left as possible (without leaving the screen, obviously) and hit the second platform from the bottom again (after going straight through it), you will bounce off.

Anyhoos, long story short, I know that there's a problem that is soely related to the scrolling and positioning of the platforms. I shall find an answer!

Here's the link!
http://www.swfcabin.com/open/1294647129
 
Looking good NintenDan! As you said, just fix up the collision data and you can start recreating Kirby.
The problem is, simply put, when the platforms move, their x and y data (positioning data for those who don't know what that is) doesn't move with the platforms. It's very odd.

EDIT: That means the problem should hopefully be easier to fix, by the way!
 
Last edited by a moderator:
The problem is, simply put, when the platforms move, their x and y data (positioning data for those who don't know what that is) doesn't move with the platforms. It's very odd.

EDIT: That means the problem should hopefully be easier to fix, by the way!

Yeah, that IS weird. I've never heard it happening before, not even in something like this where the screen scrolls. The data always moves with the platforms, so I wonder why its not?
 
Yeah, that IS weird. I've never heard it happening before, not even in something like this where the screen scrolls. The data always moves with the platforms, so I wonder why its not?
Hopefully it's not due to my crap coding, heh. *shifty eyes, nervous laughter*

I was following a tutorial and had to re-write most of it. In the process, I created a better way of designed levels! GO ME!
 
Random update: Fixed up the glitch about hitting the bottom of platforms. Easy to fix. Now there's one minor problem in which the "Jump" action is constantly running throughout the game to detect whether or not the ball is on a platform (so even if you're on a platform, you won't move, the jump function just runs and realises you're not moving). I'm not sure if this would drastically affect game performance if there was loads of extra content on the screen at the same time, but currently it doesn't do anything. One other challenge for this is to possibly research a better way of detecting collisions, but a top and bottom collision seems to be okay. I can't get a side collision working because it's just too touchy and the way of detecting a collision in Flash is kind of dodgy.

I've kind of gotten this idea for a platform game I wouldn't mind making... who knows, maybe I'll start some work on it, heh.
 
I didn't want to make another topic, so I'm putting it here... I've practically made something good enough to turn into a game. My only limitation is that I can only use squares and rectangles for platforms, which is a bit limiting. I can't even have slopes, THANKS A LOT, STUPID FLASH COLLISION DETECTION SYSTEM. I guess it's okay with just standard squares... by the way, now there's an animated character and some nice little background music. ENJOY!

http://www.swfcabin.com/open/1295777041
 
Ehh, I keep getting the same error when I try to download it
Warning: mysql_connect() [function.mysql-connect]: Too many connections in /home/swfcabin/domains/swfcabin.com/public_html/open/view.php on line 18
Not connected : Too many connections
 
Ehh, I keep getting the same error when I try to download it
I really don't know why swfCabin does that. I've searched around for other sites, but they all make your swf public and I don't exactly want to make this publicly available and in a search engine, heh.
 
Back
Top