corlenbelspar's Recent Forum Activity

  • OK thanks. I knew there were some actions unaffected by conditions, so I wanted to make sure I wasn't just wasting processing time on conditions that do nothing. lol

  • I was wondering if Z sort is affected at all by conditions?

    Like if I put a condition that tests if object A is on the screen, will the Z sort action only affect object A's that are on screen and ignore the rest?

  • I put mine at 28 because the only objects that move super-fast that could screw up, use for loops to check collisions between points A and B, thus making this problem irrelevant.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well yeah I read that, but I was wondering if the fastest object in my game moves 16px per frame in my game, if I should set that higher than 30 or lower than 30. The manual didn't really detail any calculations I can make to fine tune it.

  • I know this is probably a matter of preference, so I was wondering what logic I can use to determine what I would want to set my minimum framerate to in my game. Also I would like to hear your opinions for what you used and the thinking you used to reach this decision.

  • Yeah I do my stages with multiple tilemaps to define scrolling regions, and I have like 30 320x240 screens worth of them, and I can animate them all at once and it doesn't seem to even effect the FPS. I still make it only animate the current one you're standing on though, just to lighten CPU load a little.

    The reason it needs multiple replace expressions is because there are instances where you'll have like x7, ,7, ,7" due to how the tilemaps are stored as JSON strings, and if you just make it change 7, that's going to also change 17, 27, etc.

  • Probably not, but doesn't "set tile range" only turn all the tiles in a square into the same tile? This changes all the instances of a specific tile on an entire tilemap into a new one.

  • Nevermind, I thought pulling the tilemap as a JSON string would give me the same output as if I had the file download as a JSON, but apparently both are way different, so I basically had to rebuild the JSON string the tilemap gave me, by putting this:

    "{""c2tilemap"":true,""width"":" & TilemapsGround.Width / 16 & ",""height"":" & TilemapsGround.Height / 16 & ",""data"":" & replace(replace(replace(replace(tokenat(TilemapsGround.AsJSON, tokencount(TilemapsGround.AsJSON, ":") - 1, ":"), "x" & Function.Param(1) & ",", "x" & Function.Param(2) & ","), "," & Function.Param(1) & ",", "," & Function.Param(2) & ","), "x" & Function.Param(1) & """", "x" & Function.Param(2) & """"), "," & Function.Param(1) & """", "," & Function.Param(2) & """")

    This is WAAAY faster than having your game for loop through every single tile, so I suggest anyone reading this uses this approach.

  • I'm trying to load the tilemap as a JSON string into a variable through something like

    replace(TilemapsGround.AsJSON, "x6,", "x7,")

    to do tile animations without needing to do a CPU-intensive 400x for loop to do tile animations with a tilemap. The problem is, after I load the tilemap as a JSON string into a variable, it will not accept the variable as a JSON string when I tell the tilemap to load from a JSON string. Am I doing something wrong?

    EDIT: Screenshot of what I'm doing. Testvari was to test if the tilemap JSON string is changed, which it doesn't, so Testvari keeps adding 1 forever.

    https://drive.google.com/file/d/0Bz86oQ ... sp=sharing

  • Problem Description

    NW.js plugin keeps crashing any game I try to run in debugger mode with it.

    Attach a Capx

    https://drive.google.com/file/d/0Bz86oQ8I9hPONGhMdjFuX29ORms/view?usp=sharing

    Description of Capx

    This demonstrates that the NW.js plugin crashes your game when you try to use debugger.

    Steps to Reproduce Bug

    • Put the NW.js plugin in a project.
    • Run debugger.

    Observed Result

    Debugger preview crashes.

    Expected Result

    The debug preview to not crash.

    Affected Browsers

    • NW.js

    Operating System and Service Pack

    Windows 10 Home

    Construct 2 Version ID

    Release 231, 64-bit

  • Yeah I know from reading that I need a resource editor. Just my first game in C2 is being built for NWJS so I wasn't sure what the icons did. Thanks.

  • I've been wondering for a good while now what the files like "icon-114.png" actually do. I noticed they don't actually do anything to change the icon of NWJS when you export. As far as I can tell they just sit around and look pretty.

corlenbelspar's avatar

corlenbelspar

Member since 14 Aug, 2013

Twitter
corlenbelspar has 1 followers

Connect with corlenbelspar

Trophy Case

  • 11-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • x3
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies