deropke2's Forum Posts

  • In the On Timer trigger, you need to restart your timer with the same action that started it, to get a new random value.

    how would I do that, I can only find "Start timer" or "Stop timer" event

  • Not quite sure what you mean by that.

    I made two timers, but only one work at the time.

  • Try using timers. Like this :

    Why multiple timers doesnt work at once ?

  • Try "picking" the sprite you want to change in the "condition" of the event that makes changes to instance variables.

    Some tasks take time to complete. Just ask yourself if you want to develop something fast, or something of quality.

    I don't know what you really mean, I added screenshot though,anyways I would be down of making all events seperatly for each sprite, however I don't want to because it would be really hard to edit anything and it's something I can't get right the first time.

  • You seem to be completely green with this engine, I suggest you watching some videos on youtube on how to create a platform game. you will learn how events, behaviours and variables work with this engine.

  • So I have 9 sprites that has many variables such as engine speed, downforce, driver skill etc. In the event sheet I use event such as Every random 1-3 seconds to calculate something. The problem here is that random even is useless here as if let's say 1.5 were chosen from 1 to 3 range it would apply to all 9 sprites, but I want this to happen just to single sprite.

    I tried using "For Each" however that doesnt work, and it only makes the event work for single sprite.

  • You could do:

    Enemy: On created - Create health bar

    Which will run once per enemy

    Thanks this has solved my problem

  • your code will run approx. 60 times a second.

    you are creating 60 health bars every second for each enemy

    try "on start of layout > for each enemy" instead

    This only spawns health for the first enemy

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • gyazo.com/befbfc33e9e849a7f6fbaa13bf048ea1

    Basically it keep spawning health every tick and the game drops to 1 fps in like 30 seconds

    Saddly can't post screenshots of code but it's like :

    For each enemy

    trigger only once = Spawn healthbar

  • luckyrawatlucky solution will work perfect.

    design your game for landscape. also manu. but your menu stuff can just be rotaded 90degrees on that layout.

    My problem is different, I fixed it by setting canvas on start of the layout, thanks anyways

  • simple

    design your menu in landscape mode and put all rotate objects 90 degree angle

    I forgot to mention that the game is only for mobile devices, if I do everything in landscape, I get massive black bars for menu unless they rotate their phone ( I don't want them rotating).

  • I want to make my menu in portrait, but the rest of the game in landscape ?

  • 1. To the "On touched object" event, add an extra condition "Pick top/bottom"

    2. Change every "On touched object" for "On tap object"

    This helped me, thanks

  • You have to click on enemy 4 times to destroy it, however if the sprites are overlapping instead of killing one, you would kill all of the overlapping sprites, how would I fix that ?

    Also on mobile, a single touch counts as multiple clicks, is there a way to fix this ?

  • hopefully you enabled autosave and/or backup in the C2 settings

    The autosave is in the same folder as you project

    and the backups wherever you choose it to be (settings)

    I checked both autosave and backup, for some reason caproj was corrupted on both as well. I only lost like 2 hours of work so I'm almost back at where I was before, but it's always nice to know if there are any solutions in case this happens again