0 Favourites

Reset layout and Score problem.

  • So i have a problem with my game, when im pressing "R" For restart it wont work, or .. it does restart but it dosen't restart my score instead it add score, it makes me kinda frustrated becouse in my eyes ive done right, but i dont know, here is some pictures of my first score and then the score after i pressed "R" and then all of my Score events

    First

    <img src="http://s24.postimage.org/4snn47yn9/First.png" border="0" />

    After

    <img src="http://s24.postimage.org/vwzumsht1/After.png" border="0" />

    Event Sheet

    <img src="http://s3.postimage.org/xsxiwvktv/Event_sheet.png" border="0" />

    I hope any one of you have any tips and fix :)

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Firstly, a warm welcome to the C2 Forums.

    Unfortunately, I don't think you will find much help in this section of the forums. I suggest you (or a moderator) move your message to the "Construct 2 General" section. This area is for people looking for jobs.

    Next, nobody can understand what the three tiny images in your message mean; they are just too small. It would be better you either redo the images, or you provide a small part of your program that shows the problem. That way, somebody will be able to help you out.

    Alternatively, search the forums on how to do debugging. I would recommend you check the plugins and install one so you can watch variables and see what is happening in the background.

    Regards,

    Gavin GamesWarp

  • This might be a little late but, Ive encountered the same problem in the past and the present. If your going to restart the layout from within the layout use

    SYSTEM:ON START OF LAYOUT:SET VALUE

    And reset the values of the variables to 0 individually by name.

    Hope this helps, worked for me

  • Globals hold their value, on purpose, between layouts. If you need to reset your globals add action: Reset global variables

  • Here is what I do. I have never had any problems.

    <img src="http://img17.imageshack.us/img17/3553/support013.png" border="0" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)