A Flash Developer Resource Site

Page 1 of 2 12 LastLast
Results 1 to 20 of 37

Thread: [speed test] mario-like platform game

  1. #1
    DOT-INVADER marmotte's Avatar
    Join Date
    May 2002
    Location
    Dot-Switzerland
    Posts
    2,601

    [speed test] mario-like platform game

    hey mates...

    maybe some of you remember my platform-adventure game project... well, i just decided to remove all the adventure part and create a typically platformish game (that way the game will be released faster, and when i'll be rich, i'll work on the adventure game again, urm!)(and "only" platformish doesn't mean that the game will be poor )

    ...so i added a scrolling, and i wanted to know if it's fast enough (for me it's terrible, though i worked a lot on it, trying to optimize the most possible). ok well, please post your speed comments (i don't have any fps counter, in fact i just want to know if visually the game slows down a little bit, a lot, nothing etc...) thanks guys.

    oh and sorry, this little .swf is waaaaayy to be as complete as the platform adventure game i have on my desktop
    so tons of things are missing, included the gfx: no background, no enemies, no collision detection with the rings etc... it's just pure speed test.

    screenshot:


    playable engine, click here

    controls:
    arrows = wandering
    space = jump
    nothing more enabled for that .swf!

    i have some other nice little games in the works, but i wanted to finish this one first... thanks for your feedback

  2. #2
    Member
    Join Date
    Jan 2004
    Location
    Ontario,Canada
    Posts
    76
    i think it runs smoothly seems kind of slow but i think that's just because it reminds me of sonic

    think theres lots of potential there.. is he supposed 2 "skid" when you turn the other way? and i got stuck above the screen somehow

  3. #3
    Junior Member
    Join Date
    Mar 2004
    Location
    new york
    Posts
    5
    hey marmotte, is that tilebased or artbased?
    if its artbased, do u think you could show me just the scroll function? i've been trying to manipulate a scrolling function from a tilebased game, but i cant get it to work. if its something you dont want to share, thats kool too, but i've been at this for awhile and i really need some help.
    aww man!! moths can't buy candy bars!

  4. #4
    DOT-INVADER marmotte's Avatar
    Join Date
    May 2002
    Location
    Dot-Switzerland
    Posts
    2,601
    Xander99
    it will not be sonic-like game, more mario-like, that explains the non full speed walk speed thoguh you'll be able to accelerate
    yes, he's supposed to skid (slide?), it will be fun in the icy world
    thanks for the bug, haha this one was funny. ok, i'll restrict the player to go too above the screen (i'm not very motivated to re-work the map array), or add the corresponding if statment

    not too much so
    it's tile based, mate... creating a scrolling is not so difficult though, just try to look for "scrolling" with the search feature... i remember there was some good scrolling threads, with example... they were old...

  5. #5
    Registered User
    Join Date
    Jul 2003
    Location
    denmark
    Posts
    79
    It's very smooth. I didn't notice any slowdown at all.

  6. #6
    2KHeroes / Sylvaniah designer luxregina's Avatar
    Join Date
    Jul 2001
    Location
    Somewhere between Kirlundin and Anskaven
    Posts
    1,273
    It is smooth for me too, but i find it wayyyyy too slow : for example, from the "running/walking" animation only, one would expect the guy to go faster (does it make sense ?)
    I love the GFXs though !

    funny: i'm working on a slightly similar game (but less plateformes, more a la Metal Slug

  7. #7
    Senior Member random10122's Avatar
    Join Date
    Mar 2002
    Location
    Sheffield, UK
    Posts
    1,747
    Very smooth, lovely graphics... I think it could do with being just a touch faster? I also noticed that some of the bigger plants you can see being removed on the left side of the screen, whether that is something you want to sort out im not sure, it doesnt effect gameplay buti saw it so others will

    fracture2 - the sequel
    fracture - retro shooter
    blog - games, design and the rest

    "2D is a format, not a limitation" -Luis Barriga

  8. #8
    leight.com.au leight's Avatar
    Join Date
    Sep 2002
    Location
    australia
    Posts
    1,437
    whoops, im off the top of the screen too! i was thinking it was a secret area until i read the other posts

    it runs pretty smoothly. as it was said before, the character animation could do with a speed up, and the movement speed too.

    Does the scrolling appear slightly jerky to others? it does for me i think.

    still, its nice

    edit: yes i saw them too random...

  9. #9
    ism BlinkOk's Avatar
    Join Date
    Aug 2001
    Location
    , location, location
    Posts
    5,002
    pretty smooth here, even on my crappola box (440Mhz)
    Graphics Attract, Motion Engages, Gameplay Addicts
    XP Pro | P4 2.8Ghz | 2Gb | 80Gb,40Gb | 128Mb DDR ATI Radeon 9800 Pro

  10. #10
    383,890,620 polygons nGFX's Avatar
    Join Date
    Oct 2002
    Location
    Germany / Ruhrgebiet
    Posts
    902
    hi there,

    great visuals ... only point:
    Does the scrolling appear slightly jerky to others? it does for me i think.
    not much, but noticeable

    <olli/>

  11. #11
    Hype over content... Squize's Avatar
    Join Date
    Apr 2001
    Location
    Lost forever in a happy crowd...
    Posts
    5,926
    Hey babe, thought I'd best double check it

    It's silky smooth, just feels like it scrolls at half the speed it should ( For the animation, and for gameplay reasons ).

    If your map format is jailbitc'h then grab my scroller class and try that, to see if that's the bottleneck ( Should take about 10 mins to drop it in there ).

    Squize.

  12. #12
    leight.com.au leight's Avatar
    Join Date
    Sep 2002
    Location
    australia
    Posts
    1,437
    i doubt this is meant to happen, but check this image out. The dude is sill inbetween the grass and the dirt.

    nice graphics


    edit: you can almost do it with every platform like this...
    Attached Images Attached Images

  13. #13
    DOT-INVADER marmotte's Avatar
    Join Date
    May 2002
    Location
    Dot-Switzerland
    Posts
    2,601
    hey mates, thanks for your answers! ^_^

    luxregina
    it makes sense, babe... i'll do my best to change the variable value, but it's hard, anyone know how to do that? *urm*
    i knew about your platform game... metal slug-like? sounds very cool... (is your avatar involved?)

    random10122
    well, i love that glitch
    i like to see some gfx disappearing abruptly before they are out of screen. i think i'll keep it? (you know, i was also interested in having a NES-ish game, where the tiles that appear seem to be garbled before being displayed correctly... do you see what i mean?

    leight
    yes, but you are never stucked. and like you sayd, you can be like that in most platform games (even the ultra classic marios). the reason? gameplay. if i restrict it, then jumping on a beggining of a platform will not be as playable, because you'll can "enter" on it only if you are above it... hard to explain with my 8bits only english, but if you already coded a platform tile based game, then ou surley noticed it...

    squize
    and what about the engine i wrote, mmh? it wasn't done in one clic, you know... *biting* i'll check that certainly

    thanks for the feedback people, i'm glad to hear it's not too slow ^_^
    oh, and about the jerky scrolling, it's possible, i'll take care of that...

  14. #14
    Untitled-1.fla strille's Avatar
    Join Date
    Mar 2001
    Location
    Sweden
    Posts
    1,626
    Very nice indeed. It ran smoothly for me, but I agree that the player is moving a bit too slow.

    Great work as usual!

  15. #15
    Looks really nice

    1 more bug to add to the jerky scrolling. When the character slides to a stop the map stops scrolling. its possible for the player to reach the right side of the map without being at the end. To recreate stand in the middle where the map would normally start to scroll. Tap right, wait for the character to stop sliding. Tap right, wait.. ect.

    Nugget

  16. #16
    DOT-INVADER marmotte's Avatar
    Join Date
    May 2002
    Location
    Dot-Switzerland
    Posts
    2,601
    thanks strille ^_^
    (i'm waiting to see your game with that famous engine, mmmh)

    xMCNUGGETx
    ssshhtt... i knew that bug, but it's a secret...
    the thing is, i don't know why it happens; the movment is using the same function, so i wonder why the scrolling doesn't occur. surley a simple thing, like always.

    another bug no one mentionned, if you play a lot then the map begins to be attached with a little delay, and the more you play, the more the delay is big... but it can be fixed easily, it's just that i used a Math.floor with the map's position (to always keep pixel perfect), but not with the distance the character ran... so eventually a very tiny little difference between those values can become bigger the more you play it
    Last edited by marmotte; 03-23-2004 at 08:23 AM.

  17. #17
    Senior Member lapo73's Avatar
    Join Date
    Jun 2003
    Location
    italy
    Posts
    395
    nice prototype Marmotte.

    About speed: I've tried the demo running the SWF alone, not in the browser, and that's the speed I would like to see... (tested on an Athlon 2.0ghz)

    I usually test games using the flash player alone while developing so when I test them in the browser they loose cpu cycles and speed. I would normally add a 10-15% more fps before testing in a browser.

    About the scrolling I've noticed one thing: if you move to the right and watch those bushes disappearing on the left side of the screen you'll notice that they're removed a little before they're completely out of the screen.

    The weird thing is that it only seems to happen with the bushes that are on a platform, those on the ground seem to work fine.

    Sorry for being too fussy

    Anyway the game is really promising
    www.gotoandplay.it
    Flash game developers community
    www.smartfoxserver.com
    Multiplayer Flash Server

  18. #18
    Hype over content... Squize's Avatar
    Join Date
    Apr 2001
    Location
    Lost forever in a happy crowd...
    Posts
    5,926
    Sorry, lapo, I don't understand your comment about increasing the fps for on-line testing.

    Do you mean you write a game, at say 30fps, and then bump that up to 35fps to account for browser's being sucky ?

    Strange.

    Squize.

  19. #19
    Senior Member lapo73's Avatar
    Join Date
    Jun 2003
    Location
    italy
    Posts
    395
    oops, you already answered to the tile-disappearing glitch. sorry
    www.gotoandplay.it
    Flash game developers community
    www.smartfoxserver.com
    Multiplayer Flash Server

  20. #20
    Senior Member lapo73's Avatar
    Join Date
    Jun 2003
    Location
    italy
    Posts
    395
    Squize: maybe it is only me but it happened to me more than once and not only with games.

    Say you're creating an animation: you set up the fps so that it accomodates your needs, let's say 40 fps.

    If you're dealing with fast paced animations and you test your movie only within the flash IDE( or by double clicking the SWF) then when you'll go back to the browser you'll get a slower feel.

    Obviously this is because the cpu priority of the flash player within the browser is lower than the standalone version.

    In order to compensate this loss of speed I usually add a 10-15% more fps

    I actually don't do this all the time, but with fast paced animations it works fine.

    If you try the Marmotte demo in the standalone player it looks like it's running at the "right" speed, while running it in the browser seems a bit "slowed down"

    Hope I explained this a little bit better
    www.gotoandplay.it
    Flash game developers community
    www.smartfoxserver.com
    Multiplayer Flash Server

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center