Alternative to object variables?

0 favourites
  • 4 posts
From the Asset Store
Template for an alternative to falling shapes, fully documented in comments and video
  • I noticed my project is probably taking forever to start a preview because I had to put a ton of variables in a lot of objects in many layouts. I was wondering if there's a better alternative to adding variables to objects to store things like UID of other objects to associate them properly.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • corlenbelspar

    adding variables to objects is a great way to do things. Variables take up very little room. The graphics, sounds, music take up a lot more memory.

    Try exporting and running to see if that takes an acceptable amount of time to start, and compare that to a preview.

    Or try running the debugger and see what is slowing things down.

  • Yeah object variables are your best bet I think. I tried plopping all object variables into arrays once. Very cumbersome to deal with and didn't improve speed any, at least as far as I could tell.

  • Yeah you guys are probably right. I was just thinking it was taking a while because one of my layout files is 43mb, for example. I didn't think it was the graphics or audio because my music is done through NSF files and a JS NSF player, my sound effects are very short, though numerous with over 100 currently, and my graphics are for 320x240 because my game is NES-stylized.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)