alexrau's Forum Posts

  • Took the first hint of looking for the offending level by deleting and then restoring.

    Had a lot of incorrectly sized (not power of 2) and far too many frame animations.

    Went from 420 MB to 275 MB!

    Need to do a little bit of realignment, but was awesome.

    Thanks so much

  • Doing some game optimizations, since construct 2 says memory usage is 437 MB (which is way too big).

    My understanding is this estimate is from the largest layout in game, is there a way to determine which that one is?

    Tried to use the debugger in Google Chrome, but it is telling me that "Est image memory" is unavailable. Also gave try in Node.js, but same.

    Have looked at some of my sprite sheets and know a couple of places to start looking, but would like to understand how to use this debugger feature better.

  • WebGL effects would be really nice. Kind of steer clear of them for actual game work because they aren't supported cross platforms, but would be great to include them.

    Play audio at object is also a useful feature that isn't always consistent cross platforms. (If xBox supported, I'd probably wrap the existing Audio functions in a helper function to use play at object where it is supported).

    Also ... expect that something like AR (Hololens) or VR will be introduced to Xbox live at some point.

    Would be great to have the ability to render parallax in 3-D, e.g. the different layers and shadow cast effects would render slightly differently between the two eyes. (Though I realize that is probably a pretty complex under taking).

  • Thank you very much. Worked for this instance and think it is also a key to fixing a couple of other lingering bugs in the code.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • oosyrag - Thanks that makes sense, kind of understand why a frame based system would do this cause it kind of breaks the event based model. Makes writing clean code a bit tricky. Thanks again.

  • I think there is something fundamental I missing about how to use 'for loops" in Construct 2.

    Wrote two versions of a function, which I think are logically equivalent , but the non-looping version works and the looping version just plays the audio sound once (so I think is just looping once). I know in some programming languages there is a next or an increment, but doesn't seem to be case from looking at system expressions.

    Looping version of function

    Non-looping version of function

    I've had this a couple of other places with using blank sub-events and them not executing in the sequential order I expected (So maybe it is something deeper than me just misunderstanding the syntax of for loops"

  • Figured out answer to this one.

    First you spawn the sprite you want.

    Then set it's position to the image point (by name) on the sprite object where you want it to be.

    Then pin to the Spriter object.

  • Have a spriter animation imported into my construct 2 project. Got Character maps working (and it is great). Trying to add s fire animation to the character in some instances, however because of the way I built the original spriter files would be a lot of work to add it to the original spriter.

    I thought that adding action points to my spriter animation and then reimporting would be the answer, (http://www.brashmonkey.com/spriter_manu ... frames.htm ) but I can't figure out how to spawn an object at an action point (like firing a bullet) or pinning an object to one (like my characters fire) any suggestion? (I had thought I could spawn the object from the Spriter Family that is created but it results in the image spawning from all the underlying images)

  • Have been considering building a PI image to run as standalone construct 2 game console.

    Idea would be to install on a base image of PI OS (TBD) the Chromium browser (for playing the games) and Nginx to act as webserver (configured for the various construct 2 Mime mappings).

    The webserver would host a very simple application, which would show the names of the construct games which had been installed (e.g. exported as websites and copied to specific folder).

    The PI would be set to boot with browser displayed at full screen, so you could select games.

    If I started pulling this together would anyone else be interested in it (if so would put up on GITHUB).

  • Add mouse object and/or touch object so that you can have these events.

    Add onlicked (mouse) or ontouch (touch) to the sprite of the house, and have the event trigger a spawn or show of the video.

    Also suggest that you look at what video formats your platform can play, since a lot of variation out there.

  • Have been considering building a PI image to run as standalone construct 2 game console.

    Idea would be to install on a base image of PI OS (TBD) the Chromium browser (for playing the games) and Nginx to act as webserver (configured for the various construct 2 Mime mappings).

    The webserver would host a very simple application, which would show the names of the construct games which had been installed (e.g. exported as websites and copied to specific folder).

    The PI would be set to boot with browser displayed at full screen, so you could select games.

    If I started pulling this together would anyone else be interested in it (if so would put up on GITHUB).

  • So Mike (at BrashMonkey) pointed me into the right direction. I needed to update my mime type mappings, since out of the box most webservers don't map to Spriter file types. (Dropbox Pro I guess is exception).

    Added these lines to my web.config file and it up and runs on AzureWebsites for free.

    Am hosting on AZUREwebsite (to save the $10 a month on dropbox pro) and just needed to added these two lines to my web.config file and it worked like a charm.

    <!-- start:configuration addition for Spriter -->

    <staticContent>

    <mimeMap fileExtension=".scml" mimeType="text/xml" />

    <mimeMap fileExtension=".scon" mimeType="application/json" />

    </staticContent>

    <!-- end:configuration addition for Spriter -->

  • I tried running it on the localhost webserver enbedded in VIsual Studio 2013 and on Microsoft Azure Websites. (Been hosting my beta's to free azurewebsite as I went).

  • Export is different flavors of HTML, through a lot of current platform support HTML as first class citizens. If you find iOS too steep, Microsoft and Google's app stores are free I believe. (You'll need to download some supplement tools, but their are free versions which will get you started). Sounds like Google's play store or Amazon store might be good choices for you.

  • I'm guessing that the issue is that either

    1. the health variable that the health meter displays is a global variable instead of an instance variable on the monster sprite or

    2. the logic for rendering the health meter is calling just a single instance instead of each instance - in this case adding System.For Each as a sub-event and selecting the monsters and applying the health meter logic to it might help.