czar's Forum Posts

  • Hello,

    I had a great deal of difficulty working out how to use arrays to generate a set of unique Times Table questions.

    i.e., I wanted

    6 x 2

    3 x 2

    5 x 8

    7 x 9

    But if 3 x 2 came up again it had to be discarded and different equation generated.

    I have solved my problem and I thought I would post a commented capx in case some one has a similar issue in the future.

    Also I am quite keen to post to see if I could have done this more efficiently. For example, I am not so happy that I need to use global variables.

    GenerateUniqueTimesTableQuestions.capx

  • Kyatric your commented array example was perfect. It should be part of the manual. I found C2's implementation of Arrays to be quite confusing.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Whiteclaws, I still haven't solved my dilemma. The positioning of the body parts is not as easy as I thought it would be. On the slower computers the body parts are spread far apart.

    However, I am also a confused about MaxArrayW you are effectively adding to the size every 0.01 of second. Would that array just get bigger and bigger? I am having trouble following the logic.

  • It would be useful to set the FPS to an arbitrary amount for testing purposes. At the moment I am trying to figure out a slow computer issue and the only way I can test my solution is to run it on a crappy computer, which is taking way too much time. Much easier if I could limit FPS on my development computer.

  • It would be great if the last location was remembered in the export function.

    At the moment the next time C2 is started it reverts back to the default c:\users\NAME\desktop\projectfolder

    It would be super if it just kept the path that was last used. Even better would be drop down with the last 10 paths used but that would require more than a couple of lines of code to do :) i.e., more than storing and reading from registry.

  • Cheers. scaciga that is very generous of you. I will study your code when I get a chance, real soon.

  • It works very nicely.

    I would love to see how you accomplished this.

  • Equinox80 Have you looked into loading from an XML file?

    Otherwise if you have a server you could set up a database and read values out of it.

    But I think XML would be the way to go unless you need to save data back to the database.

  • You do not have permission to view this post

  • This game has a really nice - one more turn - effect. Nice concept.

  • borrillis

    Have a look at a capx I posed in another thread.

    This should work

    scirra.com/forum/endless-sprinter-background-scroll_topic64649.html

  • I love it. Very charming. The character is cute and the puzzles are surprising. It is the kind of game I would love to have on our site.

  • Suro - update

    I don't have same spacebar problem with scirra.com/arcade/addicting-action-games/3596/clown-on-a-plane

    However, with that link the game does not progress past the "loading" screen. I see the clown juggling, the load bar is completely red but it never moves on. If I then ctrl-F5 the title screen comes up immediately.

    I am using Chrome that doesn't appear to have any quirks.

  • Suro

    I tried this version again

    newgrounds.com/portal/view/612273

    I ctrl-F5 just in case

    I click on the play button. Pressed space-bar and the browser shot to the bottom of the screen.

    I scrolled up with my mouse, clicked on the game and now the spacebar worked as expected.

    I then clicked on the surrounding area and bang the space bar shoots me down again.

    I have tried it a few times since and it continues to be erratic at best.

  • Whiteclaws

    POS bugger! why didn't I see that?

    unfortuentaly Pos.At(MaxArrayW-(10*Crystal.SpawnNumber)*dt,0) doesn't work at all; all the body parts are underneath the head.

    I will see if I can work it out. Thanks for your help.