codah's Recent Forum Activity

  • codah: what should I add to Else? I left them blank and the problem persisted.

    Link: this worked!

    thanks everyone

    I guess it doesn't matter any more I personally don't like relying on ordering of events so much as I think it can make brittle code, but whatever works for you!

  • And personally I always like the trigger condition first.. and to reorder the logic accordingly.

    edit: and in giving the advice about Else, I was wary that you might be intending some kind of sequential ordering thing.. which it would probably defeat.

  • Try adding an Else condition first, in events 3, 5, 7

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You might try int(WebStorage.LocalValue("crowns")) + 1

  • Well, let me remember... I basically removed a few "every ticks" conditions here and there (and left the events with no condition instead since they'll be processed one after the other in the function call anyway) and removed local variables (see file).

    Also I finally meet someone else who uses the latest stable release, instead of the latest beta.

    heh.. I just downloaded the beta! Because the stable freezes on me anyway..

    About the 'everty tick', it's a choice thing for me. I prefer not to have any 'empty' lines because then I know C2 hasn't deleted any code due to me incorrectly removing an object that was in actually use.. So if I see emptiness, I know something is astray. I realise it's not necessary for functioning

    As for local variables... it is better for debugging and easier to read IMO, especially a few weeks/months later when you revisit the code... As they say, "eschew obfuscation!" (and early optimisation).

  • codah This is a great way of doing it, thanks. And it seems pretty fast even when going through longer texts.

    I've simplified it a bit and I think that's what I'm gonna be using then. Thank you.

    A?esome. I'm always interested in how things can be simplified..

  • > Hello C2 community. I have a very small text-based app on Google Play with some requests for non-English versions.

    >

    > I'd be interested if anyone could translate the text (400 words only, in sentences) into any popular language for me. This app is not a money maker so I can't justify paying Google, and I can only offer help in return on your project, or whatever I can do for you

    >

    > It's simple, 'conversational' text in Q&A style.

    >

    > Any of these (or others!) would be great. These are just the ones some people are commenting in.

    > Portugeuse, French, Italian, Spanish, German, Russian, Afrikaans, Vietnamese

    >

    > Alternatively, I could online-translate them and you could just fix the silliest mistakes it makes

    >

    > Please PM me.

    >

    > Thanks in advance.

    >

    i could translate it in Romanian if you need )

    thanks for the offer but I already have a Romanian translation

  • Been wondering for a while, what's with page up/page down not working in the event sheet editor? Please add to C3.

  • When each type of object gets destroyed just set a variable, and when each variable is set, do what you want (and probably use a trigger:once). Or just keep checking object.count for each type of object.

  • Yeah I know.. I was being lazy

    edit: I'm looking now, I'm trying to work out what you're doing with the stuff you've added

    I'm not sure what you mean by your comment "the sprite still puts all the X row and then go to next." That's how my sample did it too, except the numbers you're getting for the timer delays are not sequential, so they appear in the wrong order. I'm not sure the randomizing you're doing with tempArray is doing what you think it is doing? Maybe you could explain your intentions.

    BTW event 4 does nothing. You're just assigning all the values of TempArray back into TempArray again.

  • Sorry, I didn't need the physics updates in the beta versions so I stuck with 195 stable, so I can't open the capx. I might install to USB at some stage.

  • Try this, no javascript. Stores the indices in a csv text variable.

codah's avatar

codah

Member since 30 May, 2014

Twitter
codah has 1 followers

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies