sgn15's Recent Forum Activity

  • You can try using a global variable. Set the global variable to a new value if you hit that specific monster. then at start of layout 1, create 2 sub-events checking the global variable's value. Do the actions you want to happen (start anew or resume) depending on the global variable (the 2 sub events). You might also want to read about Persist behavior (but I haven't used this behavior myself, so I don't know if it fits your problem)

  • There's no "pause all" action for audio so I guess that (using individual pause actions for each tag) is probably the solution.

    Also tried the audio time scale, seems there are some things missing to be done before it works?

    Use the sign with the username to send a notification to that user so he can remember this thread.

  • I just noticed my avatar changed by itself? Is that automatic based on posts or something?

    grigrizljac

  • my capx is 21MB. I'm pretty sure it will be around 40MB at the very least when exported though.

    As for loading, it said on Ashley's article (number 4) that it will still show C2's default loader until it downloads completely the custom loader.

    Problem is, my custom loader is just a blank layout with a single text object. I doubt that text object is taking long to load.

    My custom loader only shows when C2 loads the whole project, which defeats the very purpose of a custom loader layout.

    Any ideas?

  • Ok. I have read and followed this

    https://www.scirra.com/tutorials/318/ho ... ng-screens

    Things I did:

    *Use custom layout - YES

    *First Layout - Set my custom loader layout

    *My custom loader layout is also ordered first in my list of layouts

    I have LITERALLY only have 1 text object in my custom loader layout and it still won't show the custom loader layout.

    but default C2 loader is still being shown and my custom loader is only loaded in a split second before it goes to main game layout

    Same exact problem as

    viewtopic.php?f=147&t=120276&p=861454&hilit=loader+layout#p861454

    viewtopic.php?f=147&t=120727&p=863432&hilit=loader+layout#p863432

    saiyadjin

    grigrizljac

  • I'm having a bit of trouble understanding and using this

    [quote:152tky13]RegexReplace(String, Regex, Flags, Replace)

    In String substitute matches for the regular expression Regex (with Flags) with the string Replace. The replacement string can contain the following special characters: $$ (inserts a $), $& (inserts the matched substring), $` (inserts the portion of the string that precedes the matched substring), or $' (inserts the portion of the string that follows the matched substring).

    I have a global variable called LevelNumber and my layouts are named Level 001, Level 002, Level 003, and so on.

    I want a single event that will detect LevelNumber and go to layout (by name)

    Condition: LevelNumber > 0

    Action: Go to Layout "RegexReplace ( LevelNumber, don't know what to put here, don't know what to put here, "Level 00")

    Help please. Thanks in advance.

    Edit:

    IndieKiwi

    maybe you can help me?

  • Mathijs90

    Thanks.

    I figured the sorting part now. I'm not yet trying the "play game, die in game, save the scores, etc." but I'm setting values directly and sorting it via key presses. I meant that I have made some progress.

    I have to stop now because I'm going out.

    I'll try the "saving and sorting scores after dying" part later on. I'll update this if I succeeded.

  • Anyone? a little help?

  • System conditions don't distinguish between instances even if you used it with For Each.

    Like Somebody said, use random expression as duration of timer and use for each

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm not sure on this, but try setting "Unbounded Scrolling" to Yes in Layout Settings

  • My game has player's name, levels, points and lives and they are all global variables. I want to create a high score table based on those information.

    Does anyone have example of how to save global variables into array? and how to sort them (if a new high score is lower than top score but higher than the rest of scores) ?

    I am not very familiar with arrays.

    Attached is a picture of my high score setup (5 slots, in the example, the game is only 3 times played, so 2 are left blank)

  • Ribis

    How to save? I haven't tried that and no idea so far

sgn15's avatar

sgn15

Member since 20 Sep, 2013

None one is following sgn15 yet!

Trophy Case

  • 11-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

14/44
How to earn trophies