nutmix's Recent Forum Activity

  • Hi, this is a 2 line capx:

    https://www.dropbox.com/s/6shif7l7wpofis0/loadertest.capx

    It has a loader layout and a game layout.

    In the project, "use loader layout " is set to yes, and the first layout is set to "loader"

    in loader, I have:

    System loadingprogress=100 : System Go to game

    It never works, it always gets stuck in the loader layout. No idea how to get the loader to switch to the game layout.

    Help!

  • Hi, usually I stick with arial and verdana, and use normal text objects in the game. I avoid sprite fonts etc as I am guessing they will increase the game size and decrease performance, two things I I cant do.

    A customer is requiring me to use a new font, the dubiously named "VAGRoundedBT".

    What will happen on mobile devices such as iphones and Android hand sets?

    How do I distribute this font?

    Shoud I be using web fonts, or sprite fonts, or are they the same thing?

    Thanks!

  • Hi, I have a large background image for my main game.

    I want the same background image on the loader layout.

    however, in the loader layout view, I cant access the objects which were in the main game layout. If I add the background image sprite, will the game bundle it up and download it twice? If so, can this be avoided?

    Thanks for your help.

  • OK, sussed it. The correct format is:

    "{

        ""c2array"": true,

        ""size"": [75,1,1],

        ""data"":[[[""na""]],[[""st""]],[[""nd""]],[[""rd""]],[[""th""]]]

    }"

    Doesn't seem logical, but I guess thats JS for you!

  • From various posts, I have guessed at the JSON format required to load an array.

    Its for looking up the "th" string, e.g.

    "1" & array.at(1)

    should result in "1st" etc.

    I tried loading it with this string:

    "{

        ""c2array"": true,

        ""size"": [75,0,0],

        ""data"":[1:""st"",2:""nd"",3:""rd"",4:""th""]

    }"

    I also tried this:

    "{

        ""c2array"": true,

        ""size"": [75,1,1],

        ""data"":[[[1:""st"",2:""nd"",3:""rd"",4:""th""]]]

    }"

    and this:

    "{

        ""c2array"": true,

        ""size"": [75,1,1],

        ""data"":[[[""na"",""st"",""nd"",""rd"",""th""]]]

    }"

    and a million other formats.

    The ones which dont throw a runtime error, all print "10", i.e. they get back zero from the array.

    Anyone know the required JSON format to load an array (or dictionary).

    Thanks!

  • I have read the container manual page, but i am struggling to get them to work.

    Firstly, I don't get if I am supposed to take the container object, and add its sub objects, or take each sub object, and add the container object.

    Currently I am doing both, so if A contains B, I add B as the container for A, and A as the container for B. If I only do one, I get unpredictable results.

    What objects are containers? Can any object be a container?

    If I want to take a large group of sub objects which together make up one complete object, can i use containers to only have to anchor one object, rather than individually anchor them all? Previously I did this with pinning, but as pinning can only be set at run time, I end up with lots of code like:

    pin B to A

    pin C to A

    pin D to A

    Etc. Shame this cant be done in the designer.

    What else do containers give you?

    Currently I only know one thing: if you create the container, it creates the sub objects.

    If you select one of the sub object, I could not get it to also select the container, so I use instance variables called MYID, and assign both container and containee the same instance Var at run time. This works, and allows me to select one when the other is selected. Are containers supposed to help with this?

  • Try Construct 3

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

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

    good exmaple. Do you have to destroy the template object like this? I havent done this, which could be why in your third action its affecting mutliple sprites. Or perhaps because my equivalent of Sprite3 is in a family with lots of other copies of Sprite3?

  • This does not seem to work for me. If I create a new ball object for example, then use ball.xx in the action of the same or a sub event, it always acts on all balls, not the one I just created.   As I don't know how to pick the event I just created, I actually do this:

    1) have he ball on a special layer, called "templates"

    2) have a blank layer called "new"

    3) create a new "ball" object on layer "new".

    4) use an event condition where I say ball.isOnLayer("new")

    5) then in the events actions, do this: ball.setLayer("target")

  • This does not seem to work for me. If I create a new ball object for example, then use ball.xx in the action of the same or a sub event, it always acts on all balls, not the one I just created.   As I don't know how to pick the event I just created, I actually do this:

    1) have he ball on a special layer, called "templates"

    2) have a blank layer called "new"

    3) create a new "ball" object on layer "new".

    4) use an event condition where I say ball.isOnLayer("new")

    5) then in the events actions, do this: ball.setLayer("target")

    This seems to work.

  • Ok, my solution did not work. I have tried the following:

    1) Spawning a copy of an existing (off layout) ball object, then using ball->set x etc. in actions in the same event block. This moves all balls, not the one just created.

    1) assigning a intance variable called "justCreated" and set it to 0. Use System->create object to create a new ball. In a sub event, select ball where justCreated = 0, and set it to 1. Do stuff to that ball. This doesnt work as it affects the newly created ball, AND the template/dummy ball which is only there to allow new balls to be created.

    Can anyone point me to a man page, thread, or capx which shows how to pick the object you just created/spawned?

    Thanks!

  • Perfect! Ill stick with that then - nice.

    Thanks!

  • Er, if you cant create then pick, what is the recommended solution? Create, wait, then pick? That would seem tricky?

nutmix's avatar

nutmix

Member since 16 Aug, 2012

None one is following nutmix yet!

Trophy Case

  • 12-Year Club

Progress

12/44
How to earn trophies