Sam Mortimer's Recent Forum Activity

  • I've been adding 'every 1/5' or 'every 1/10' etc. to conditions that need to be updated constantly but not necessarily every single tick, in the hopes that it will improve performance by giving the computer fewer things to think about at once.

    However, could it actually be harming performance because it requires lots of timers to be kept track of?

  • The manual says to use render cells on large layers with many static objects, which I have except there are a few moving objects on it too. Should I still use render cells or will that cause some problems?

  • I'm pretty sure C2 has image deduplication. They might have seperate sprites but when you export the engine will know to use the same image for both.

    awesome

  • A simple on created action would solve this..

    I mean when I use the 'create object' action.

  • So is there really no way of having objects share artwork in Construct 2?

  • It also means I have to set font scale, character spacing and every other value for each instance I create, rather than Construct 2 just sorting that all out based on an instance of the same object elsewhere in the project if you know what I mean. Kinda annoying.

    Oh well! Thanks for the help.

  • > Why use multiple objects?

    > Just use instances of the same object and your issue is resolved..

    >

    But then the programming gets really messy. I'd have to use instance variables to say which instance has which job, and then specify which instance I want every time I get any of them to perform an action and ugh

    Not happening

    Actually maybe that wouldn't be too tough. But still, there must be a way to have objects share artwork. Anyone?

  • Why use multiple objects?

    Just use instances of the same object and your issue is resolved..

    But then the programming gets really messy. I'd have to use instance variables to say which instance has which job, and then specify which instance I want every time I get any of them to perform an action and ugh

    Not happening

  • If I'm using more than one sprite-font object which all look exactly the same, Construct 2 saves separate spritesheets for each object. I want them to all share the same spritesheet obviously.

    The font uses a fairly high-resolution image so it's kind of important I'm not saving loads of duplicates of it.So how do I have multiple objects share one image? please help omg

  • I have things in my game that need to happen constantly and would usually happen every tick, e.g. the character's eyes looking around at stuff in the environment, the player's cursor-crosshair-thing jumping to the nearest usable object, etc.

    To try and improve optimization, I've added 'every 1/10 seconds' or 'every 1/6 seconds' and similar things to the conditions, so that the computer doesn't need to do everything on every frame. However, I don't know whether this is actually a good idea. On the one hand, the computer should be doing fewer calculations and stuff every tick, but on the other hand maybe it's actually really performance-intensive to have the computer keeping track of all these different timers? I dunno.

    Is this a good idea?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ...or do I need to use lerp(a,b,clamp(C,0,1)) for that to happen?

  • Was there some newly created objects along the way per chance?

    Every 1/8 seconds a function runs to correct the size of these fake 3d objects. The function also runs when one of them is first created. However, when that happens the newly created object is not immediately affected.

Sam Mortimer's avatar

Sam Mortimer

Member since 7 Nov, 2013

Twitter
Sam Mortimer has 2 followers

Trophy Case

  • 11-Year Club
  • Popular Game One of your games has over 1,000 players
  • Email Verified

Progress

13/44
How to earn trophies