Kazan's Forum Posts

  • I have this problem as well with 170.

    Previewing with Node Webkit is perfect. Exported is anything but.

    It's not only screwing up the appearance of sprites but it's also moving them slightly off of the positions I've placed them at.

  • I did try that actually, it works but there's an awkward few moments where the character is literally standing still while the run animation continues to play. It doesn't quite look right.

    It's also dependent on when the player lets go off the movement key. If they happen to let go of the key on the first frame of the run animation the entire run animation plays and then the runstop animation, it looks bad. If they let go on the last frame the runstop animation plays immediately and it looks good lol.

    Not quite sure where to go from here.

  • Hi everyone.

    What I mean is, say you have an idle animation and a running animation. The player holds the movement key down and the character stops his idle animation and starts (duh) running. Player then lets go of the run key and the character then snaps back into his idle pose.

    In most instances that works just fine. But sometimes that can create an incredibly jarring effect as the characters just snaps back into his idle pose from a full blown run. The same can happen when he STARTS running, to go from idle to running in a split second can look pretty odd in some cases. I guess it can depend on the art used and how smooth some of your animations are.

    I've tried creating some intermediate animations to deal with it. An idle into a run animation for instance that plays and when it ends the normal run animation starts. It works great, very smooth and fluid. But what about stopping?

    Stopping is where I need help. This is tricky to explain so bear with me lol. I have a run animation 10 frames long. I also have a stop running into an idle animation about 5 frames long.

    If the player stops holding the run key down at the exact second the running frame matches first frame of the stop running animation then it works awesome. But if they let go of the key at any one of the other 9 frames of the running animation it puts me back to square one, a jarring transition into a transition animation lol.

    Obviously creating 10 different sets of transition animations to account for every frame of the running animation is out of the question.

    So I guess what I'm asking is there any way to do this a bit easier? Have you ever tried anything like this before? What were your experiences like? Sorry for being so long winded, hopefully you know what I'm getting at.

    Thanks guys.

  • Hmm, don't understand really. Not sure what you mean by platform.x.start. Construct throws an error if I try to add a value after an objects X.

    Tried imagepoints instead.

    player.x > than platform.imagepointx(0)

    or

    player.x < than platform.imagepointx(1)

    Set Platform Maximum Speed to Zero

    Will result in... nothing happening. I'm also not sure how I could resume the players movement if I'm stopping them once they hit the edge. Could you possibly explain further?

    Thanks for helping, it appears to be fairly simple but I've always struggled with some of C2's more basic concepts lol.

  • Hi.

    I'm curious on how to do something.

    I have my player character (has the platform behavior) standing on a platform, they're able to move along it normally. Now when they get to the edge of the platform I don't want them to fall off, I want them to just stop right at the edges of it. Know what I mean?

    Yes I thought about adding an invisible solid object to the edges of the platform to keep the player "inside" the platforms' boundaries, but for reasons that affect other areas of the game I CANNOT make those edge markers solid.

    Any other less obtrusive ways to pull this off?

    I thought about adding something like 2 image points to the edges, but not sure how I could get the character to stop moving like that.

    Thanks for any help

  • Thank you so much. That's such a clean and elegant way of doing this. I was using a completely different expression, it was getting me nowhere but I couldn't think of what else to try. I really need to become more familiar with picking.

    Thanks again, big help

  • Bump.

    Anyone?

  • Well I'm having some issues getting both of these ways to work.

    At first it seemed easy but I'm not sure how to write this out exactly with events, it just goes back to my original problem of how to actually move to an instance. The second example especially, how can I actually pick an object with variables?

    Could anyone post a capx or go into more detail? Been struggling all night with this one lol

  • Ahh, that's an interesting way of doing it.

    I think I'll give your second option a shot as I think that will work a bit better for my needs. Thanks a lot for taking the time to help

    Nice looking out there too for separate sets of stairs on the same floor, that was going to be my next question ha.

    Thanks again!

  • Hi there.

    I'm working on making some functional stairs. Something very similar to the stairs in Gunpoint (go play it, it's great!).

    What I have is a "stairs" sprite and a copy of that sprite on a different floor.

    So basically all I want to do is when the player is overlapping that first set of stairs, they press a button, an animation plays and they warp to the copy of the stairs on the second floor.

    I know I could just make separate objects for the stairs and try to do it that way. But if I'm making a large building with varying sets of stairs that would get confusing fast. Knowing how to do it would help me with a lot of other instances in my project as well.

    Help on this would be huge.

    Thanks!

  • One step closer to being the undisputed 2D engine of choice for nearly all platforms. Nice job guys!

  • Bump.

  • Bumpage.

    Board moves fast :P

  • Works for me. Using the latest beta if that makes any difference.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi all.

    So I've been playing around with making a custom scrollbar. I need one to scroll through a series of images.

    I've come close thanks to these:

    scirra.com/forum/behavior-scrolling-for-text-sprite-font-plugin_topic52557.html

    dl.dropboxusercontent.com/u/5779181/C2Demo/scrollable_text/index.html

    Thanks to rexrainbow I have a custom scrollbar and it works great so far. But you can only scroll text with it.

    Has anyone managed to create a variant of this that allows you to scroll through images instead of text? Or does anyone have any tips on how to go about doing that?

    Thanks for any help.