wgfunstorm's Forum Posts

  • Expected:

    If an object is on an invisible layer, the condition 'visible' for that object should return false.

    Actual:

    If an object is on an invisible layer, the condition 'visible' for that object returns true.

    Repro:

    1) Create an object on a layer.

    2) Make the layer invisible

    3) Create a condition testing if the object is visible

    Demo

    dl.dropbox.com/u/46072108/layervisbug.capx

  • Same here

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks dude! Can't believe I missed that.

    BUT it still doesn't work. I tried adding the flags 1 by 1, starting with pf_animated and the animation editor opens but as soon as I add pf_texture (which I need to do the tiling like in tiledbg) the animation editor stops opening. It appears to be you can only have 1 or the other flag active, but not both at the same time. Dang! <img src="smileys/smiley5.gif" border="0" align="middle" />

  • So I want to make a plugin that lets you add and switch between frames of a TiledBackground just like a Sprite.

    I was hoping this would just be a matter of copy-pasting & tweaking some stuff from Sprite->TiledBackground, but I can't actually seem to find anything in Sprite that tells it to bring up the animation editor and store multiple textures.

    It looks like both Sprite and TiledBackground call the same function, yet with different results:

    this.instance.EditTexture();

    Is there some behind the scenes trickery going on?

    My goal is to let players customize the wallpapers on the walls of their in-game shop, which is a TiledBackground. Creating ~20 TiledBackground objects and then using some huge if-chain to spawn/destroy whichever one they select sounds really clumsy. So I thought a more elegant solution would be to add multiple frames to a TiledBackground.

    Thoughts?

  • This Construct 2 mini-plugin for Chrome fanatics (like me!) let?s you log things to the JavaScript console.

    I find it to be much more useful when debugging than simply displaying things in a textfield within C2 because:

    • you can look at object data
    • you don't have to worry about things disappearing when you change layout
    • the Chrome console has a bunch of other awesome features (you should try it, it really is amazing!)

    DOWNLOAD LATEST VERSION HERE

    The latest version has improvements made to my plugin by boolean that makes arrays display nicer.

    You can still download the old (original) version here, as well as see a demo and get more information on how to use it here.

    Screenshots

    Logging the number of seconds since the layout started

    <img src="http://i.imgur.com/bQNEB.jpg" border="0">

    Peeking inside an array at the contents

    <img src="http://i.imgur.com/eJPOw.jpg" border="0">

    Actions (there are no conditions or expressions)

    <img src="http://i.imgur.com/DV7aC.jpg" border="0">

  • Could you please change mine's name to: Playtomic Metrics and Leaderboards

    Description: Register for a free Playtomic account and easily create Leaderboards or record player metrics such as number of deaths per level.

    Is that too long?

  • I could see myself using that <img src="smileys/smiley20.gif" border="0" align="middle" />

    Also the plugin you linked me above parses JSON->hashtable and can convert to string, which sounds pretty useful. Maybe you could team up with Rex and add XML to his plugin? Just a thought.

  • There's certainly some similarities, and it would theoretically be possible to achieve what I want with a hashtable, but I really don't need the extra functionality of having to worry about matching keys->values. I like the simplicity of enum's that create & manage unique numeric keys behind the scenes for me.

  • No, I don't think its suited to your purposes. It's useful for recording general metrics such as 'how many times did players die on level 2' so you know if you need to make level 2 easier. But not for recording unique per-player data. (With the exception of leaderboards which save per-player data of course)

  • I've been meaning to make an enum plugin. I really miss them from other languages.

    I end up having a lot of global variables such as UPGRADE_MOVESPEED, UPGRADE_SCOREMULT, etc so that I can then do things like upgradeData.At(UPGRADE_MOVESPEED, UPGRADE_PRICE) without having to remember which entry in the array the upgrade I want is at.

    There's many more examples of cases where I find this approach is useful but I end up with 834239012093 global variables that I treat as const's cluttering up my variable list.

    The plugin would let you do something like this:

    • action -> create enum "UPGRADES"
    • action -> add "PRICE" to enum "UPGRADES"
    • and then you can use expression UPGRADES.PRICE

    Any thoughts / advice before I start this in the next few days?

  • Oh and one more thing, how do you suggest creating a popup that can be used across multiple layouts? Specifically I have an 'options' popup that I want the player to be able to access from any layout but with the layers method I would have to put the layer in each layout so for that I'm doing the spawning method by embedding an 'options' event sheet into each layout.

  • During gameplay, I want to briefly show menus that partially cover the game window, that the player can interact with, then close, and resume gameplay. (so having them on separate layouts is not an option)

    There's 2 ways I can think of doing them:

    1) Create popup in editor on a layer and turn visibility on/off

    Pro: easy to set up in the editor

    Con: items in the popup will still get updated even if they are not visible and take up memory (performance)

    2) Spawn & destroy popup as needed using system -> create object

    Pro/Con: basically the opposite of layers... annoying to create because the popups consist of lots of pieces so lots of 'create object' actions are needed but probably better performance wise

    So far I've been using the layer method, but now that I'm up to 6 fairly graphical popup layers that are invisible most of the time and want to add another 2 I'm starting to wonder if there's a better way.

    Your thoughts?

  • In webdesign, I don't think it's purely to do with pre-loading images. There's more than 1 way to do that, but with this method you also get other benefits eg

    "The conclusion is the same: Reducing the number of HTTP requests has the biggest impact on reducing response time and is often the easiest performance improvement to make."

    yuiblog.com/blog/2006/11/28/performance-research-part-1

  • I wasn't sure how best to explain this so I just recorded it.

    Looks like a minor bug to me:

    Subscribe to Construct videos now

    There are no other groups with the same name in the project.

  • Cool, I was mostly just curious. I agree it's not a big deal. Thanks!