sotak's Recent Forum Activity

  • You can view my version i made here viewtopic.php?f=147&t=95684

    I have the capx uploaded as well so you can download it to compare with what you have

    or just view the game here

    http://game.reconone.info/v1/index.html

  • Sweet. I know the feeling looking at it and everything appears perfect, but its that single letter, single word that is missing haha

  • If you set it to auto clear yes (I have chrome, not sure if the default browser has it).

  • bremen It probably something small like mine was once i got it working

    You can take a look at my full config here, ive added comments to most areas i feel are helpful.

    Not sure if it works without it, but I have my global number HighScore and Score, as well as the local key HighScore, the exact same, as they are case sensitive.

    you have both Highscore and highscore...so might be some cross there

    Only other thing i can see from that image is you have it ***

    Set highscore int(Webstorage.localvalue...etc

    Not sure if it works with the int? mine is just "Set HighScore WebStorage...

    https://dl.dropboxusercontent.com/u/146 ... flyer.capx

  • Any chance of that capx?

    Yeah been busy lately, ill upload what i have though it is messy so hah

    Ive added some more comments to hopefully help anyone else trying this kind of local score setup

    https://dl.dropboxusercontent.com/u/146 ... flyer.capx

  • > For an example of how I did mine (not sure its the best or most effecient, but it does work for me), I have the settings that are shown at this image

    > My main issue going over it was getting it to display the highscore at the end, but was able to find the correct option after reading some of the posts on this forum.

    >

    > Hope the screens help

    >

    > http://game.reconone.info/files/config.png

    >

    Hi when I play the game in preview from construct 2 and make for example 1 point and close the preview and open it again it doesn't save, is it because it doesn't save in the preview mode? This is for android phone I want to make it and thanks for your responses!!!

    The way i understand how it works (and thats going off about 2 weeks of using it) yes.

    I know my screenshot is kinda...crazy looking, i still need to get time to clean it up and maybe post a tutorial on what I did to make it work.

    If you can post a screenshot of your config, some of the smarter guys can take a closer look at it.

  • matching yours to what mine shows in my zombiy flyer type game i have on start of layout

    webstorage | local key "highScore" exists System Set HighScore to WebStorage.LocalValue("highScore")

    you can view mine here to see, i crossed out stuff that doesnt apply/wasnt setup just yet

    http://game.reconone.info/files/config.png

    Game works on computers/my tablet and does save the score

    Hope that helps, I know setting up the scoring to work was the worst part for me, or at least the most frustrating

  • I think so...from what it says I have it on a collision currently, so if the bullet/missile hits the wall object (invisible in the game) the condition shows "bullet | spawn | portal on layer3 (image point1)

    I tried it to do on collision | create object | portal on layer 3 at (x, y) (tried it with choosing the x/y of the object it hit, but still not quite right.

  • Hey, making a portal like game. Have a rough template made so far.

    left mouse shoots first portal, right mouse second

    touch first and spawn on second.

    Just the portals i want them to spawn flush with the walls..or maybe a few millimeters out, but currently they spawn completely random

    uploaded the game to my server here to see what i mean

    http://game.reconone.info/tank/index.html

    First settings used were http://game.reconone.info/files/settings.jpg

    the capx for what i currently have is on dropbox

    https://dl.dropboxusercontent.com/u/146 ... 0tank.capx

    Ive tried a few different options in the spawn list after bullet hits the wall.

    Not sure if it would be best to have on one wall 5 smaller sections, and try to get each "portal" when it hits it to overlap? or if there is a way to format it to spawn directly with the x and y values

    I know it needs a function to check if the second portal is spawned before entering first as it destroys the player, working on that so no worries

    Thanks guys, love this program

    EDIT 3-6-2014

    Found out a way that works pretty well for me...anyone think of a cleaner way to do it? This is working for me now, so i can just add new levels as the portals are working how i want. Just need to now make a character instead of the tank, then make prettier backgrounds then mspaint hah

    http://game.reconone.info/files/settings%20bullets.png

    game with two quick levels so far

    http://game.reconone.info/tank/index.html

  • For an example of how I did mine (not sure its the best or most effecient, but it does work for me), I have the settings that are shown at this image

    My main issue going over it was getting it to display the highscore at the end, but was able to find the correct option after reading some of the posts on this forum.

    Hope the screens help

    http://game.reconone.info/files/config.png

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I got it to work!

    Not sure how...But was reading some other posts on webstorage just adding in code and changing it around and now it works. Ill upload a fresh copy after i clean it up so anyone looking at this can see what I did (and point out a better way if possible)

    Might be next week sometime, as Im going hunting tomorrow-sunday...but its now saving the highscore!!!!

    Thanks for everyones help, now just gotta figure out what exactly i did that made it work haha so i can use it later in future games

    The last changes I made were following the idea Aphrodite gave herehttps://www.scirra.com/forum/viewtopic.php?f=147&t=95354&hilit=highscore

    I "Think" it was that the game over section (after collision) it was not pulling the saved highscore? maybe...idk Ill try to figure that out and post a full SS / the actual file to help anyone else out who is trying this kind of idea

  • sotak, first of all, I would put most of the code in the collision section in a function so you don't have to duplicate the code so many times...

    Yeah working on that part haha, its very cluttered right now

    [quote:2hjoc6f3]

    You are saving the text "Score" instead of the value of the Score variable, and you don't need to do that every time the score changes.

    But you are resetting the webstorage "Highscore" field at the start of the game, in event 2

    I changed it around a bit more (tried to make it the same score style as the video)

    Do you mean setting the Score to 0 is resetting the Highscore field? or the global number part

    took a screenshot of the video that was linked to show the settings compared to me.

    I even made my names for the txt boxes/keys the same

    Seems like its just one little part that is off but everything looks the same as far as add 1 score (100 for his) and the storage keys.

    http://game.reconone.info/files/new.jpg

    I tried to follow the steps AllanR mentioned along with copying the wording that he used in the video as our structure is for the score is practically the same.

sotak's avatar

sotak

Member since 13 Feb, 2014

None one is following sotak yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies