jeffige's Forum Posts

  • I have a "High Score" textbox on the gameplay layout, so the player can see the highest score to date.

    The array is 10,2,1. How can i show the highest score in the array. which would be at arrayscores cell 0,1?

    Tried a few different things, but haven't figured it out yet. Any help is greatly appreciated.

  • blackhornet

    Cool. Ty, sir

  • blackhornet

    When you say sufficient, you're making me think there's a better way?

  • I read that 'get' is now deprecated. So, would this be correct?

    Localstorage > on item X missing - localstorage > set item X to X Global Variable

    Localstorage > on item X exists - localstorage > set item X to localstorage.itemvalue

  • Stare at it long enough you're bound to figure it out.

  • That's what i was thinking. But i need to figure out the logic that will stop that if the playername and score are the same.

    I tried adding the events to a group starting with line 2 and if the playername and score are the same, then the group gets deactivated.

    Didn't work. I think my brain is turning to mush.

  • FINALLY! I got the array to show the names and scores on the leaderboard layout. But now, every time i go to that layout, the same name and score is filling up the array.

    If anyone has any idea why and can help with this, it would be extremely appreciated.

    capx

    *note - after the 1st time playing and saving the name, go

    'HOME' then 'OPTIONS' then 'LEADERBOARD'. Repeat and you'll see it filling the screen.

  • In Kyatric's capx example for Asteroid clone in less than 100 events, he has the event: Keyboard > On return pressed - then has some actions that save the players name to display with their score.

    I moved that event from the esSplash layout to the esScore layout (in my game i'd rather have the textbox on the scores layout). Everything still worked fine.

    But when i try to swap the keyboard event for a Touch > On touched object - to do the same thing as mentioned above, it does not want to save.

    I got rid of some logic that compares the text within the textbox, and with the keyboard event it still worked, but not with the Touched Object. I've spent hours looking over the logic, going back to the keyboard event, it just does not want to work with a Touched Object. Is there something i'm missing?

    Since this is going to be a mobile game, it doesn't really make sense to have the Return trigger these events/actions.

  • 99Instances2Go

    Big dummy....I completely spaced on looking in tutorials.

    Thanks brother

  • I thought i saw a post on this but now can't seem to find it.

    I would like to limit the user to only be able to type in a-z characters (upper/lower case) and numbers 1-9.

    Any help is greatly appreciated.

  • It all depends....on many things.

    Are they sub-events? Conditions?

    Events/actions are read from top down.

    Think of throwing a ball at a window. The window can't and won't break unless the ball is thrown first. And then if there are other things preventing the ball from hitting the window. Such as a person walks in between the ball being thrown and the window. The ball won't ever hit the window because it hit the person first.

    It took me a long time to understand this. Even now, i have to look over my logic to make sure everything is in its right order.

    Maybe you could upload a capx or screenshot, we'd be able to better help.

  • I'll even have to try that randomly

    Right now, i have invisible sprite rectangles that stretch the length of the window, offset just a few pixels, on all four sides. I have an event/action: Sprite > On collision with (those boxes) Sprite > Destroy.

  • Obvious question, have you checked the collision box for the enemies?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Triforce

    blackhornet

    Thank you for the help. I think i got it now. I added the timescale 0 action i was using for the gameover event(s) and had to move some actions up and down. Funny, i think its the same as i had it before.

    At least its working now.

    And if i can ever figure out this setting player name to array scores... I'll be golden

    Thank you both again.

  • Triforce Tried the time scale, but there are some things i can't have included in that. Also, i'd rather have a countdown than a generic "push button to play". May have to revisit the time scale thing.

    blackhornet What do you mean by 'reset'? It works like it should except for the bullet behavior on the starting disks. And they are being enabled right after the action that activates the groups.