SteveKane's Forum Posts

  • I thought that the problem had been resolved but i'm still getting the same issue where the image/sprite only appears on some occasions rather than all the time.

    Can you check if there is anything else going wrong?

  • Thank you so much and thanks for the comments, it's very helpful. I can see where i'm going wrong now.

  • Anyone? I'd really like to learn what i'm doing wrong as i thought i was doing this correctly.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Anyone? I've used webstorage before but i cant get it to work with this.

  • I've got a issue with making a 'New Highscore' image appear when the highscore is beaten in my game.

    I've got a sprite outside the layout and when a highscore is beaten, i've set the sprite position to appear on screen but It's very tempermental and seem to only work when it feels like it. On some occasions it will work fine and appear when the score is beaten but then there are times where even if the score is beaten, the sprite will not appear.

    What i've done is on the Game Over event sheet is the following -

    Condition

    System(Every Tick)

    System(TotalDistance > WebStorage.LocalValue("GameHighscore")

    Action

    Sprite (Set Position to (321,102))

    I've provided a capx file and that quickly made so it makes the 2mb limit.

    I'm not sure what the issue is and would appriciate any help on this.

  • How do i go about saving these settings so that if someone exits the game and goes back in, these settings stay? I understand that it's with Webstorage but i've tried doing it but its not working for me. As i'm using Global Variables, i'm using that in my Webstorage expressions but its not saving the settings.

    Can someone show me or explain how it's done?

  • Thank you for your reply, its really helped me out. Didn't notice the fade behaviour but its made things a lot easier.

  • I wanted to create a splash screen for my game and need some help on how to do it. The splash screen i wanted is pretty simple, with a black screen and then a logo and text will fade in for about a second and then fade out. When it fades out i want my game menu to fade in.

    I had a look at a few games on Scirra Arcade and the splash screen for Project Blaze Zero is pretty much how i want it, I can't post the link but it's not too hard to find.

    Hope someone can help. I'm not sure if it's necessary but i've provide a capx of a quick game i made just so its under 2mb limit.

  • I've managed to get it working so thank you for your reply, it's really helped me out. I wanted to add a flashing 'New Highscore' text when a highscore has been beaten but i'm having a little trouble with that.

    I've done the following -

    System - (Compare Variable) Total Distance>WebStorage.LocalValue("HighScore")

    Action - (System) Create Object

    The create object is a sprite that says New Highscore, but this doesn't appear when i beat a highscore for some reason, can you tell what i'm doing wrong? I'm also struggling to get the flashing behaviour to work as the sprite doesn't flash even though i've enabled its behaviour and added a Flash action to the Sprite.

  • I'm struggling to create a Highscore for my game. I understand that you do this through webstorage but i've had multiple attempts at this but i keep getingt different issues with it.

    I'm making this game for phones and want to display the highscore on the Main Menu and Game Over screen. I also want to so that the highscore updates as soon as the score has been beaten.

    Can someone help me out, i've provided a capx file that i created just so i'm under the 2mb limit to post it here.

    Thanks

  • Mate, thank you for that. You're an absolute legend

  • I've managed to solve my issue using a Global Variable, i found out where i was going wrong so i've fixed that so hopefully they'll be no more issues with that. Thanks BluePhaze & federer365 for your responses, appriciate you guys taking time out to help out.

    I do have another issue that's slightly related, the issue is that on my game over screen, if you select the Menu button it goes to the Main Menu layout, which is fine but in doing this the Music and Sound button reset to default, so they start playing again when you press the Menu button, even if the sound has been turned off before.

    I know this is because i've set it to go to the Main Menu layout after touch the button and so the Main Menu layout resets to the beginning but i can't work around how to keep the Music and Sound setting when going back to this layout.

    I've provided my capx again as i noticed an error in the capx that i originally posted where the music button didn't work as i forgot to set a tag to an audio file.

  • I've tried but i can't get it to work. Would you be able to do it with the capx ive provided? I'm just having alot of trouble turning off sound over three layouts, I've had many attempts but to no avail. I know it can be done as if I set audio to silent on animation frame 1, everything is muted but I don't want the music muted with this button as my other button does that.

    I would appreciate it if you can do it with the capx file so I can see where I'm going wrong.

  • I'm trying to create a button to turn sound effects off on another layout but I'm having a little trouble with it. I have three layouts, Menu, Game & Game Over. On my menu i've created two buttons, one to turn the music off and one to turn sound effects off.

    My music starts on the start of the Menu layout so the music button is working perfectly and turns the music on or off with no issues.

    However my sound button doesn't fully work as I want this to just turn off sound that plays on all three layouts. I have sound that plays when a button is pressed which is on the Menu & Game Over layout. I also have sound on my Game layout where it makes a sound when the play jumps. I want my sound button to turn all these sounds off when toggled but I can only seem to make it work for the sounds on the Menu layout.

    The way I've done my buttons is when it is set to animation frame 0, the music/sound plays. When it is set to frame 1, it should stop/ mute.

    Hope someone can help, ive had various different attempts to solve this but to no avail.

    I've provided a capx file that i've been working on. So far it just the autorunner game with few added bits such as menu, sound etc.

    Thanks.

  • Great, thank you again!