ErekT's Forum Posts

  • Hello.

    I'm doing a Flashback/Street Fighter hybrid thing. Feedback would be great :D I'm working out the basic mechanics for now so there's not a lot going on yet.

    Double-tap direction keys to run, S to operate stuff, and Shift to bring up the inventory screen. Press any key to start.

    dl.dropboxusercontent.com/u/70562654/G2/index.html

    I voted 'something else' but maybe I should have voted modularity? Anyhows, I'd like some more low-level control, like having project settings modifiable through the event system.

  • TELLES0808:

    I dig the art style and music in this, well done :) Will you include key/gamepad controls? The mouse controls didn't work so good for me, especially when the mouse pointer wanders outside the playfield and I lose control of the ship.

    Muco:

    Cool game idea but I can hardly see the bullets, maybe use a different colored background?

  • We could possibly do a low-res render and stretch to fullscreen, but I'm not sure a software renderer is going to be much good with that still.

    Even so, sounds like something that could help alot with shader effect performance for those high desktop resolutions. I'm all for it :) If you were to implement it, maybe also include an "internal" scaling option for effects that rely on at least a 2X scale?

  • Yeah, more resolution and scaling control would be great. I'm seeing performance issues caused by this too, even on middle-end computers with high desktop resolutions.

  • Thanks :) Checking it out now.

  • Hi all.

    I'd like to write a function that uses bitmap images for text display instead of system fonts. Has anyone around here done this before? Any ideas on how to best go about it?

  • Yo!

    Construct 2 will scale your game to the device's resolution, whatever that is. Letterbox scale ensures that your game's aspect ratio is kept intact. Iphones all have the same aspect ratio I think? So just make sure your game resolution fits one model and it should look right on all of em.

  • Thanks for that :) Some very good points. I guess it's time to check out Ajax and tme/tmx.

  • I'm working on a Metroidvania myself, actually. Definitely possible but you might want to look into AJAX, project files, tmx. importer, and dictionaries. I think there are some "Metroidvania" examples around here but they use individual layouts for each room/area which won't get you very far in the long run.

    Why is that? Asset overload? Just curious. I'm making not a full-blown Metroidvania, more like a Flashback/Another World thing, but tech-wise they're pretty similar.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's the same kind of logic here, events replace if/else statements but functionally they're the same.

    So:

    [System] Every Tick

    [Event]     On key pressed (LShift)

    [Action]       playerSpeed = playerSpeed + 100

    If you want it incremental you just:

    [System] Every Tick

    [Event]     On key held (LShift)

    [Action]       playerSpeed = playerSpeed + 100

    And so on...

    If you haven't already, you might wanna go through a tutorial or two to get a feel for the C2 "syntax". It's real easy, but the clickiness and some of the C2 terms can feel a bit alien at first.

  • Here's an idea for an AI structure if you change your mind. I did a 2D fighter AI in a different programming language ages ago, and if I remember right it worked something like this:

    The AI fighter has an instance variable called Decision and another timed variable called Decision_Timer. These get checked every tick. When the Decision_Timer reaches zero, it means that it's time for the AI to decide what to do. When that happens, the function Make_Decision gets called.

    Make_Decision checks the distance between AI and the opponent, and then sets a course of action that suits the situation into the variable Decision. For instance if the distance is close the AI might want to throw the opponent, so Decision gets set to AI_Throw. If the distance is about 150 pixels or something he might want to either throw a hadoken or try a flying kick, so Decision gets set to AI_Hadoken or AI_Flykick_M by a random value.

    When Decision is set, Decision_Timer also gets set to countdown 2-3 seconds. If the AI can't pull off the attack he decided on before the timer runs out, Make_Decision is called again. While Decision_Timer is running, it's also good to check if the player opponent suddenly decides to jump or something so the AI doesn't pull an attack that no longer makes sense.

    Let me know if you change your mind about tackling the AI and I'll see if I can dig out the source code to explain it better.

  • Is this what you want to do?

    On (X) Button Pressed        (Trigger event)

        If Animation Frame < 4   (Event)

            Set Animation Frame to Sprite.AnimationFrame + 1    (Action)

  • Happens here too in Chrome and Opera. It's been happening at least since r114 I think.

  • The only thing I can say in response is, "If the Construct 2 workflow is the most appealing, easily understood part of the game creation software, why restrict it to HTML 5, a standard that is 'emerging' at best?"

    Html5 is platform-independent. It's beautiful. Sure the html5 revision is still emergent but this is html we're talking about here. It's not like it's gonna just crawl into a hole and die in a couple of years.

    Fact is, I haven't spent the money to know one way or the other about the "Export to PC" functionality apart from hearing that there's now a Node App Web Kit or some such hocus pocus that's included with Construct 2 now. I've read on the forum that results with it vary. Some people have issues with sound playing, some people have issues with the fonts not rendering properly (requiring them to create sprite-based assets for many things), and crazy framerate variations from 5fps - 60fps for next to no logical explaination other than "It seems Construct 2 has no native export options apart from HTML 5, and no true destination for the games apart from the internet."

    The PC and Mac export option with Node-webkit seems to work without any issues. No licensing caveats, no need for faffing about with a separate install and exes behave as native applications. I haven't tried the other exporting options so can't say anything about them. But C2 is perfectly usable as-is for more than browser games.