sgn15's Forum Posts

  • 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

  • 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

  • brunopalermo

    I would like to ask if that greatmethod you used also works if the game is exported as exe (node webkit)?

    Fiammaoscura

    nice game

  • You either used another trigger condition (with green arrow) or you used trigger once. trigger conditions will disappear from selection if you already have another trigger condition in your event.

  • Try Construct 3

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

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

    I would suggest set all bullets to disabled at the start (bullet properties in sidebar) and enable them using events so you're sure there's nothing flying around when you don't need it. Of course you need at least 1 instance of the bullet object (or rocket in your pic) either in this layout or somewhere else in your project.

    You can adjust all bullet parameters to make it arc even more

    Angle of motion is different when facing left or right (you should know how to count degrees)

    start at 0 degrees at right

    counterclockwise is adding 1 degree

    clockwise is adding -1 degree

    360 degrees in 1 full circle

    360 degrees same as 0 degrees

    research on this if you're not a numbers person

    Set Bullet's "Set Angle" to Yes (bullet properties in sidebar) to angle the sprite of the rocket similar to angle of motion

    Use the sign next to my name (like I did to your name in this post) and I will get a notification and I will reply to you again.

  • Is the "Set Angle" of bat set to yes?

    If the bats are just moving horizontally, I would suggest setting it to No so you have more control on the appearance of the bats.

    Can't you just use "on collision" or "overlapping" then "bounce off" and "set mirrored" ?

    If you want to mirror it when facing left and not mirrored when facing right, you can use that (being mirrored or not) as condition for hitting against a solid to decide whether to mirror after bouncing or not.

  • Is the bat using platform behavior or did you mean it's a bat in a platformer type of game?

    If using platform behavior, take note of your gravity, if it doesn't float, try gravity = 0 first.

    Note that platform objects will still fall even if no gravity (free fall) unless platform behavior is disabled.

    You can also use other behaviors for flying, like bullet behavior (which also has a gravity parameter).

    You can adjust the gravity if you want the bats to fall down to the ground (if you are supposed to hit them in your game).

    Not enough info like how you coded the fly (so I can't know why it doesn't work), how your game works, etc.