Help a dawg out! (Sprite sticking problem)

This forum is currently in read-only mode.
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • This is just a continuation of the thread at .

    Sorry for taking over the board one thread at a time, I needed to upload this file and *sniff* I had nowhere else to go.....

    Um, yeah. To c&p from my last adventure....

    Heylp! Heylp!

    Sorry if this has come up before (I've searched the forums and came up blank) but, well, when I was a wee lad messing about in TGF all those years ago I encountered a problem importing graphics from paint, in that no matter what I did, the sprite seemed to always spaz about randomly from frame to frame. I always knew it was because of the hotspots but I could never figure out a good workflow for getting this sorted. Being 13, I eventually gave up and went outside instead.

    So, been fiddling with construct, and started having the exact same problem. So, um, help! I'm trying to import a Mario sprite with the goal being to build a simple engine and then just go a bit nuts with it figuring out all the new dx9 effects. I've got a spritesheet I got off the interweb, and I've been trying to copy/paste from Paint into Construct. I've assigned the platform behavior to mario but haven't changed any variables.

    Mario falls onto the test platform fine. Then, when I move, he'll either spaz through the frames really really quickly then just go to the first frame and get stuck. I've checked that the animations looping - it is. If I jump (I haven't put in the jumping animation yet) he'll spaz wildly in the air, doing all the walking frames, and when he lands just go back to being stuck in whatever frame he landed in. Also, stopping moving doesn't return him to the standing animation.

    So, construct genius-types, When it comes to importing sprites, whats your workflow? I noticed that there is an import feature that cuts up a big sheet, but I always seem to slice up my sheet. Is there any set way to organise the sprites in here perhaps? Or if I'm copy-pasting, how do you prevent the hotspot screwing everything up? If anyone could paste like a step-by-step guide I'll be especially thankful and send hugs and kisses and maybe my mum if your interested.

    Cheers!

  • Animation is a little tricky in Construct when it comes to swapping between animation sequences.

    Firstly, you need to event each animation like so;

    +Press Button
    -Set Animation to "Jump"
    -Set animation frame to "1"
    -Start Animation
    [/code:1v4fq110]
    
    or
    
    [code:1v4fq110]
    +Jump animation is finished
    +Player is not jumping
    +Player is not walking
    -Set Animation to "Standing there scratching arse"
    -Set animation frame to "1"
    -Start Animation
    [/code:1v4fq110]
    
    I highly recommend looking at Deadeye's "Platform School" as it covers the whole animation thing. You can find it [url=http://www.scirra.com/phpBB3/viewtopic.php?f=8&t=2154]HERE.[/url]
    
    In regards to hotspots, if using the central point of the sprite doesn't seem to cut it, I usually set the hotspot to a "common point" on the sprite, like a belt buckle, or nestled in between the female heroine's breasts. Not only can this be fun, it also works all the time mostly.
    
    Lastly, if you want some place to host files, [url=http://www.scirra.com/phpBB3/viewtopic.php?f=23&t=2831]GET DROP BOX[/url] you'll love it. Best thing evar. EVAR!
    
    ~Sol
    
    P.S. Welcome to the boards... I haven't seen you around before, so this counts as a welcome even though you've already been here for awhile xD
  • You shouldn't need to set the animation frame to 1, unless it's been paused .

  • Actually you don't need any of those events in this case... you could just use tagged animations with a little tweak as described here:

  • dawg

    <img src="http://media.movieweb.com/news/01.2007/randyjackson.jpg">

    lol

  • Hi evgenia

    Just wondering why you'd bump an old thread with a completely unrelated post...

  • um, pokemon?

  • <img src="http://dogasu.bulbagarden.net/manga/getto_da_ze/getto12-hammer_deigda.gif"> <Dead

    ^evgenia

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • <img src="http://dragonballz-episodes.otavo.tv/wp-content/uploads/2008/08/dragon-ball-z.jpg">

  • it was pokemon

    this is a frame from a seizure causing moment:

    courtesy of wikipedia

    <img src="http://upload.wikimedia.org/wikipedia/en/thumb/b/b4/Pikachu_seizure-2.jpg/180px-Pikachu_seizure-2.jpg">

  • *drops to the floor, shaking and foaming at the mouth*

  • *drops to the floor, shaking and foaming at the mouth*

    *steals Madster's wallet*

  • *drops to the floor, shaking and foaming at the mouth*

    Why do you keep bumping old threads with irrelevant posts?

  • Yeah, please don't bump old threads

  • Aw.

    I just go through "new posts" and sometimes it shows me old stuff I haven't read.

    Plus I don't get to post every day now no time

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)