codah's Forum Posts

  • You're saying 'drag and drop' but that only requires 1 mouse click, not two. Can you clarify what you actually need?

    edit: anyway try this. A 1-click option

  • Thanks codah - I have quite a few of those blanks in my code and you're right.

    I used to prefer blanks, until the first time I got some conditions deleted and I didn't notice. Can create very hard to find bugs. So I'm a convert but others will have their prefs Also I think I saw it recommended by Ashley once.

  • I wouldn't leave it empty, I find it best practice to put an 'every tick' (or maybe a Trigger Once) instead. One reason is that conditions can sometimes get deleted accidentally/inadvertently (when deleting an object), and you won't know if it's one of those or an intentional blank.

  • No problem. You wanted to select a different 'non repeating' random number for the animation frame whereas your code was just choosing from 0-3 each time and so could repeat. With mine you have a list of numbers that it chooses randomly from, and that chosen number then gets removed from the pool of available numbers for next time. Not sure what the While loop was for in your code, and choosing numbers twice... so I didn't go into that much The other thing is you can just set animation speed to 0 so you don't have to 'stop animation'.

  • Because if you just do 'on keyboard pressed', you're not picking any objects. Actions work on picked objects. If you don't pick any specifically in an event then all of the object type are picked. So in the case of 'key pressed' the condition doesn't pick any balls so they are all picked by default, and you get all the balls destroyed, whereas in mine I've picked the one touched/clicked on.

  • Ashley I think he wants to have the timed autosave as well as the 'on preview' autosave.

  • No it's fine I was just pointing it out. Glad it helped.

  • I have issues with this too. Just tried to use it the other day, spent a while on it, but went back to the Tween plugin which worked immediately. Bit vague as well sorry.

  • Hi, see if this helps.

  • object:pick by unique ID(1089)

    object:destroy

  • Hi see if this helps. Click on a ball to assign a value to it.

  • Welcome to C2. You'll find you can do really powerful things even as a beginner, but you will still be learning after years. Yes there are games with commercial success. But first, take the time to really search the forums (e.g. for 'performance' and other things you want to know about) and have a good read. When someone asks 'is it possible... ?' the answer is nearly always 'yes'. Good luck.

  • Thanks so much, I'd never think to use that. Will be checking it out asap.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for that.. It's smoother than what I had and more consistent. I measure 0.22sec on pc (for comparison) and about 0.28sec on my slowest device.

    I added dt to get it the same across devices, and a timer to check. edit: and x4 sprites because I need 4 at once.

    [attachment=0:arlyby38][/attachment:arlyby38]

    I had been playing with scale and even animation frames. Scale is jumpy and animation frames play back at different speeds on different devices.