Pantaloons's Forum Posts

  • Hi,

    I have a variable that acts as a counter, and a variable that acts as a score. The counter runs continuously, and I wanted it to add 1 to the score variable after every 10 count. What would be the best way to do this.

    Thanks for your help!

    <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Tekniko,

    Thanks for the advice.

    The example is C2's stock 'Autorunner' starter project example, so the platforms already had the bullet behavior attached to them.

    And I'm not really sure that this behavior is what's causing the problems I'm experiencing, but thanks anyway!

  • Bump,

    Could anyone take a look at my capx please, and let me know where I'm going wrong.

    Thanks

    <img src="smileys/smiley1.gif" border="0" align="middle" />

  • - yes, I did set the correct orientation when running in cocoon.

    Hopefully the new launcher will help.

    Thanks again for your help :)

  • , thanks for getting back to me.

    Yes, I have all of the same settings on my project, and it's still not working!

    I guess it must be something else, I'll just have to keep looking.

    Thanks very much for your help though :)

  • Hey All,

    Been trying to work out why my game isn't spawning more than 3-4 platforms, but still no luck.

    Tried to find another trigger as per beufreecasse 's suggestion, but no luck there either.

    I'd really like to try and understand just why my current events aren't working properly?

    Can anybody help please.

    <img src="smileys/smiley5.gif" border="0" align="middle" />

  • beufreecasse,

    Strange that it works fine for you, I only ever seem to get a 3-4 blocks then nothing?

    I'll try to find another trigger for the block creation.

    Thanks for the help!

  • Hi all,

    I'm making an endless runner, and I'm trying to use sprites to indicate when blocks should be created or destroyed.

    I set up a for each loop to check the position of each block, and spawn or destroy blocks dependent upon there positions compared to the 'startline' and 'endline' sprites.

    Problem is, I only ever get a few new blocks spawning, and then nothing! Can anyone tell me where I'm going wrong? I've added a capx, and my block spawn and destroy events are numbers 5, 6 and 7.

    Runner.capx

    Thanks for any advice you can offer.

    <img src="smileys/smiley1.gif" border="0" align="middle">

  • ,

    No problem, I appreciate the help! :)

    Just checked my project, and I've already implemented all of the settings you mentioned, including every layers parallax set to 0, 0.

    Hmmmm puzzling, hopefully your update might shed some further light on the subject.

    Thanks again!

  • Thanks that would be very helpful :)

  • Thanks for the reply :)

  • Bump,

    Anyone, please?

    <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Ashley, not sure if you could help me with this? I'm guessing it was either Tom or yourself who wrote the example.

    I was wondering if it may have something to do with scaling? The original layout is 640, 360. When I run it through the CocoonJS launcher, I display it in a 800, 400 screen. The function used to create new blocks uses Layout.Height and .Width to create / position new blocks.

    I'm still very new to C2, but could that be the problem. and if so, how could I re-code the example to prevent this. I have already tried Window.Height and .Width, but that made it do all sorts of strange things!

    Thanks very much for any advice.

    <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Hi all,

    I've been trying out C2's built in example runner game. The example seems to work well in the browser and the windows phone emulator, but when I export for cocoonjs it starts to behave strangely.

    If you play the game for a short while (2-3 mins), you'll notice that platforms are sometimes placed in mid-air, and these mid-air platforms lose their solid behavior towards the end. These platforms also tend to disappear before they have completely left the layout.

    (Note: You may have to be patient, as it doesn't happen all of the time, however even a few times would be enough to spoil an otherwise decent game! Also, if you allow the player to die a few times, it helps to bring on this behavior faster).

    Does anyone know why this might be happening, and how I could fix it?

    Oh, I changed the fullscreen option from 'letterbox scale' to 'scale' (not sure if that matters!)

    Thanks everyone, any help would be appreciated.

    RunnerTest.capx

    PS, I've attached the capx, but it's just the example found as an option in the new project list.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi chrisbrobs,

    I'd love to take a look at your example capx, but I'm getting a 404 error. Could you upload again please?

    <img src="smileys/smiley4.gif" border="0" align="middle" />