codah's Recent Forum Activity

  • Why does dismissing an interstitial ad restart the app? I've created a minimal app with 2 layouts. A button on the first layout goes to the second layout, which displays an interstitial at startup. Dismissing this restarts the app, going back to layout 1. Why is this?

    .capx attached. Obviously I have changed the ad unit ID. Thanks.

  • By the way do know if theres a way to preview and test a specific layout only instead of going through the different layouts

    yep just hit preview and it will run the open layout. Otherwise F4 will run from the 'first layout.

  • That works for logic but it won't work in this case because of the triggers. You can't do an expression like the one you're after involving triggers, with subevents. Just have separate events calling the same Function.

    edit: e.g.

    --------------

    Mouse: On Left button Clicked onbtnAdelante -> Function("func")

    --------------

    Touch: Is touching btnAdelante

    System: NroInstruccion = "a" -> Function("func")

    --------------

    Also your first example

    ((x = true OR y = true) AND z = true)

    is different to your second example, which translates to

    (x = true) OR (y = true and z = true)

    You could do the first but not the second.

    BTW you can also use the System: Compare expression like

    System: ((x = 1) | (y = 1 & z = 1)) = 1

    if your expression involves variables and not triggers.

    tl;dr If your first logic example is what you're after, subevents will work, otherwise they won't

  • thanks it would be better if someone came out with video tutorials on making a full game from scratch to show how these different elements work in the engine

    There are video tutorials out there outside of this site, you could probably find one that would do the job. We're still willing to help if you can give us a better idea of your needs and why the above is not good for you. That's pretty much standard practice..

  • if find(text, "dog") is > -1 will tell you if "dog" is in the text. Is that what you want?

    Check out https://www.scirra.com/manual/126/system-expressions

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • And actually what you wrote didnt answer my question im talking about showing the graphic art pic when the player win or lose. And why this game forum cant be like other engines where you post a question and u just get an answer and not talking about reading manuals something i already did

    Don't take it the wrong way. Anyway you asked how to "display your score variable number". I also understood that to be to display your score in some text. You said you already knew how to display the win/lose pic?

    Many many answers are given here every day, it's just that when a question 'appears' to show little effort and it's been asked many times it can get frustrating. That tutorial or spacedoubt 's answer should suffice, otherwise please re-state exactly what you want

    Edit: You could show the score in a Text or SpriteFont object, or you could have a separate sprite for every digit if you want (not really necessary as a SpriteFont does that more easily). If you want to superimpose the score on an pre-exsting graphic, that would be more difficult.

    PS: it's recommened to post a capx, if possible, as this can make things clearer.

  • Tutorial search "how do i show score" . First hit: https://www.scirra.com/tutorials/37/beginners-guide-to-construct-2/page-7

  • > value = choose(1,2,4,5,6,7,8,9,10,11,12,13,14,16,17,18,19,20)

    >

    hi thanks for answer

    is it possible to use a variable in the choose function.

    Would've been quicker just to try that in C2?

  • JLH1964 that would be a nice earner, I'd love to emulate that! Can you link to your games?

    Tekniko I do hear you about ads. I'm trying to make mine minimally intrusive/annoying. Android users' buying habits are just unfortunate. Ironically I think it's the more expensive 'premium' games that sell and 0.99 casual games that don't (with, I'm sure, notable exceptions). I'm in the second category.

  • I have another interstitial issue, thought I'd add it here.

    Previously I had an interstitial appear on displaying the high score. Once the user dismissed it, they could see the high score then go back and play again. Now using the new plugin, upon dismissing the interstitial, my game restarts. Fully reloads with loading indicator.

    I can't post the capx and it would take some effort to reproduce this in sample form, so hopefully someone has a clue about this? Thanks.

  • Very embarassing but this is user error... I had created 2 banner ad units. Your question about the refresh rate tipped me off fldr thanks again. Have created an interstitial ad unit so will see what happens.

    Edit: confirmed--getting both ad types now thanks guys.

  • I thought it would be easier but ill follow your directions thanks

    It's easy to set up even though I'm having an issue right now (but I doubt it's the plugin).

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