Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - nicktendowii

Pages: 1 2 3 4 5 ... 8
Ask a Question / Re: Resetting game save using lists
« on: August 16, 2017, 06:18:13 am »

Thanks a lot! I was miles off then. haha :)
will mark post as solved.

Ask a Question / [SOLVED] Resetting game save using lists
« on: August 16, 2017, 05:59:34 am »
Just a quick question. I've got lists for storing level data. scores, times etc. I have made a button to reset the values if the player wants to start the game from the beginning. It doesn't seem to be working though and doesn't start from the beginning. some scores seem to be reset while others stay the same.
Attached a screenshot of the code used to reset the values. am I doing it wrong?

The 2nd screenshot shows how they are displayed in the world map.

Save Index should be a attribute in the behavior, not a game attribute, because each scene or level will have a different one.

You only have to wrap the "get item from list" block in the "as number" block. So when you are comparing Timer > Get Time, you have to put that Get Item inside a "as number" block. Same with the Get Item < Score if statement. Finally, at the bottom, when you "replace item" in the list, you don't have to wrap that "1" in the as number block.

Thank you! It's all working now. Very good explanations. will change the title of the post to SOLVED.

One option is to have one list attribute for every type of statistics you want to save. So LevelsComplete, where each index is one level saved (lists start at index 0, for the record), LevelScores are all the scores and so on and so forth. When getting list values that you want to be numbers, remember to use the "[ ] as number" block to cast the value as such.

A slightly more complicated option is to use only one list as a 2d array, where each index is all the info from one level. You can achieve that using the "split [ ] with separator [ ]" block whenever you get a value of a list. You could also use maps to achieve similar results.

Either way, one thing you'd need is to say in each scene where to save the values, with a number attribute called for example "Saved Index", to control where everything is saved.

Thanks for the advice. I've tried setting up lists for the different level data types. I've tried replacing the existing code for updating the level scores etc but it doesn't seem to be liking the replacing the list item with a new number. I used the "As Number" block but it won't work. any idea what I'm doing wrong? - see the screenshot. I've left the code blocks i've replaces them with on the right.

Thanks again. 

edit. I've added the savedindex attribute and give it a value at the start of the stage. (as this is stage 1 i've set it to 0) still not working though, any ideas? (see screenshot 2 for edited version of code. It doesn't seem to like the if statements?

Hi, so far I've been saving the level scores, times, names, level complete True/False, amount of collectables remaining etc.  all as their own attributes. e.g

Is there an easier way of saving these values and displaying them? (on the high scores screen and on the level select map)

I have 40 levels and am having trouble keeping up with managing so many different game attributes!
I've been trying to look into using a list to somehow store the data but not having much luck.

Also, I've tried making a reset button which will change all the bools to false and all the values back to 0 to reset the game but I think because I have so many they aren't resetting properly and showing up random values or just not changing at all
Any advice would be much appreciated! Thanks in advance, Nick.

See the attached images to see how I've been managing the data so far. as you can see its becoming quite hard to keep track!

iPhone / iPad / Android / Re: BLAST AREA! Quick arcade game!
« on: June 02, 2017, 04:26:45 am »
Updated with a new game mode! Dodge Area.
Move the circle around and dodge everything on the screen for as long as possible

Ask a Question / Re: where is the best place to put this code?
« on: May 17, 2017, 11:46:40 am »
Solved. made a counter which only runs the update if two conditions are true. see screenshots for info :)

Ask a Question / where is the best place to put this code?
« on: May 17, 2017, 11:07:00 am »
I have a power up system which, when a power up is triggered, it ads 10 seconds to a timer which then begins to count down to 0. when it hits 0 i want it to do the following (see attachment)
I tried putting this on updating in my players events but it makes the framerate really bad. probably because it's constantly resetting the players speed and removing effects etc. how else can I make the game set all these attributes when the timer reaches 0? I also tried it on drawing but the same problem applies there too..

Thanks in advance!

I've done the same thing before. I did it by having an actor that was just a text holder, and had the text attached to it, then the placement of the text was always in relation to the actor.

In the bottom image, what is the 'self' that you refer to?

Thanks I'll try it that way instead then. The 'self' in the last image referred to the level. E.g the level1-1 you can see in the first screenshot.

I have a hub area where the player will enter the different levels. I have some code which brings up an information box when moving over the level. I'd like to be able to display a score and time for the stage when moving over it in the pop up box. I can't figure out how to get the text to appear in the right place at the right time. Please take a look at the attachments. Any help would be much appreciated!

Ask a Question / Re: ios leaderboard not updating?
« on: February 13, 2017, 09:58:47 am »
It takes some time to update

it still hasn't updated. any idea how long it takes?

Ask a Question / Game centre leaderboard not updating...
« on: February 12, 2017, 06:51:34 am »
My game has been online for a week now and the leaderboard has not updated. I can still only see my own score... i know other people have played it and it's supposed to show their scores on the scoreboard as soon as they finish playing... how can I fix this? Or is it the App Store being slow to update?

Ask a Question / ios leaderboard not updating?
« on: February 09, 2017, 02:31:34 pm »
I've just released my first game on ios (BLAST AREA) and have tested it out with friends and family, but their scores aren't being updated on the leaderboards. They are submitting their own scores fine but mine is showing from a few days ago and it's not displaying any new ones? Is this normal or have i done something wrong in the set up?

iPhone / iPad / Android / BLAST AREA! Quick arcade game!
« on: February 09, 2017, 01:09:01 pm »
Made a quick game to test everything out before launching my Super Donuts game!
It's completely free to play so have fun!
Looking forward to seeing your high scores! :D

Ask a Question / Re: In app purchase to remove ads
« on: February 07, 2017, 11:18:33 am »
yeah restore is just one block, easy.

hmm I've never really used banners, but I guess you need to have a when purchase happens hide advert.

where is this scene placed? will people visit again after purchasing the iap?

also are you sure you want to use banner adverts, what makes you choose them over interstitials?

The main reason for using banners was because the game is a one screen arcade game with space at the top for a permanent banner. I thought (perhaps selfishly) that if people saw the advert while playing, rather than after on the high score screen, they would be more likely to pay to remove it...

I will try adding the restore purchases now and test out a few ways of getting the banner to stop showing...

Pages: 1 2 3 4 5 ... 8