GoldMatenes's Recent Forum Activity

  • Okay, here it is.

    Don't look too hard at the code under 'Generation', it works perfectly but looks incredibly kludgy (I learned to code in C++ first.)

    Also, try in debug mode first to get an idea of how the movement is supposed to be responding.

    http://www.sendspace.com/file/gmmomn

  • Up until a short time ago, all my movement and keypressing was working like a charm.

    But for some reason, it suddenly refuses to work properly - some keypresses are randomly ignored, or the system waits for them, or refuses to let my sprites move until another identical keypress.

    Before I go about posting the .cap, though...

    It runs perfectly fine in debug mode.

    So does that mean I'm missing something obvious?

  • I love this plugin but I would like some clear docu on importing sprite fonts, as while the example shows easily how to use the plugin it doesn't explain how to change fonts.

  • ...sigh.

    I'm guessing you may have accidentally put your player character into the same layer as the UI?

    Yes, yes I did.

    Anyway, it's all fixed now, and the resizing stopped the trippy background problems.

    Thanks for all the help.

  • Hmm, if I'm right in thinking what you're trying to do, it does that automatically. Have you made sure unbound scrolling in the layer properties is switched OFF. Because in that case, I'm 99.9% sure that the player will be centered in the screen until you reach the edge of the playing area, at which point the view will stop at the edge, while the player can continue up to the boundaries.

    I believe you have the gist of my idea. And you're right that that is what is supposed to be happening. But it doesn't. I have all the settings set in such a way but my player still moves around the screen and even out of the HUD.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ah, that would make sense. Resizing go!

    What I'm looking to do is this.

    Player moves in a grid around a play field, but the HUD moves with him so he always appears to be in the center... UNLESS he reaches the bounding at the edge of the field, in which case the view no longer centers on him, so he can move to explore the areas in corners of the field. I'll try to toss a .cap together to see if I can show you what I mean.

  • Well, I'm trying to like Construct. But I keep getting fiddly little issues.

    Maybe you all can help me out.

    I want to create the following:

    A sprite (25x25) in the center of a HUD that is the size of the window (375x400). The player moves with 4-way grid movement around a large map (1200x1200) with a tiled background.

    The irregular size of the window is because it needs to have a centered square (with a double-square-width space for the HUD at the top).

    I placed all the above, and set it up so the map would scroll around the player as he moved and the HUD would remain in place, taking up the whole window. My intention was to make it so the player only appears to move if he hits the edge of the map, but otherwise remains in the center of the HUD at all times, for a little grid-based RPG kind of thing.

    Unfortunately, that's not what happens.

    The player moves around the window area no matter what I do, even though the window is centered on him. When he moves, the background does move, but the tiles are blurry and improperly aligned, no matter what I do.

    Might anyone know the cause of this?

    (Another minor issue - the 'show grid' function doesn't seem to properly align with the tiles, but that I can cope with for now.)

GoldMatenes's avatar

GoldMatenes

Member since 1 Dec, 2009

None one is following GoldMatenes yet!

Trophy Case

  • 14-Year Club

Progress

14/44
How to earn trophies