This forum is currently in read-only mode.
0 favourites
  • I can't find a way to do this, is there any?

    Also, after I playtest my game, when I save, a message comes up:

    "Not enough memory" (translation)


  • You can rename event sheets in the dialog where you add and remove them from the list. Single click a selected item to rename it, like renaming a file in windows explorer.

    Can you send me your .cap that runs out of memory? I need to be able to reproduce it.

  • Hm, I'll try and send it later. In the meantime, I have another problem <img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" />. How can I set for example the layer opacity to a variable? Sorry for bombarding you with questions <img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" />.

  • Under the 'Layers' category in the System object for both actions and expressions, you'll find 'Set opacity' and 'Get opacity'.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Aaah, now I see what thats for! I really appreciate your help, I plan a large-scale project and your help is really great <img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" />.

    But when I use Global(variablehere) it says: variable here is not a recognised expression...

  • Variables go in single quotes, eg. Global('Myvar'). You should try the ghost shooter tutorial, it teaches you things like this <img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" />

  • Ah! I tried quotes, but I didn't think of single quotes <img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" />. Thanks!

  • Setting layer opacity doesnt seem to work for me.

    +On Layout

    : Set layeropacity of layer 4 to 10

    Doesnt seem to work...

  • A bug. Should be fixed in next build.

  • It is. Thanks! <img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" />

    I found another bug. The function is ceil(0), right?

    "( is not allowed after ceil"

    How does the random function work?

  • Woops, 'ceil' is fixed for next build. In the mean time, a workaround is that floor(N + 0.5) is equivalent to ceil(N), so use that. Random works like so:

    random(N) generates 0-N not including N, i.e. random(4) could give 0, 1, 2 or 3. random(1.0) generates a random floating point (decimal) value between 0 and 1, so you can also say 50 * random(1.0), which will give you literally any number between 0 and 50.

    For random between two numbers just add to a random number:

    50 + random(50) gives between 50-100 for example.

  • Many many thanks! I'm really starting to get comfortable working with Construct and I will try my best at helping you find bugs. <img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" />

  • For some reason, subevents affect FPS very much.

    If I have:

    +On 1

    +On a :

    +On b :

    it is alot slower than this:

    +On 1

    +On a :

    +On 1

    +On b :

  • That shouldn't be true. How are you measuring FPS (the built in one?), and what kind of difference do you get? Can you send me a .cap that demonstrates one being slower than the other to ashley@scirra.com? Thanks.

  • I sent an email.

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