|
Post by johnno56 on Apr 25, 2020 6:13:17 GMT -6
The bullet speed was increased for testing purposes only... lol Try not to get used to it... Once everything is working ok, the speed will be returned to normal... lol
I like the idea of power ups. I had thought of that from the beginning, but as I said before, I have no idea how to implement them at this time. Doesn't mean they won't be added. There are a few things that still need fixing... Possibly a better player explosion animation; Maybe better sounds... that 'thud' noise can get a bit monotonous... Maybe a random choice of different thuds... Figure out how to fix the 'backspace' when entering a high score name... Some of the text on some screens need to be centered...
At the moment my priority is getting the backspace fixed. Reason: When a player scores enough to be either a Top scorer or another High scorer and makes a mistake in entering a name, the backspacing works, but it is just not displaying the erased letters... I hope that make sense. The other fixes I mentioned are not what I call 'critical' as the game still functions as it should. I still need to go through the code and "tidy up"
Perhaps the other guys may have a better ideas as to how to add power ups? I will keep this one on the "To do" list but I can't make any promises... lol
The game is getting closer to finishing... fingers crossed...
Well. Back to the editor...
|
|
|
Post by tbird on Apr 25, 2020 8:11:35 GMT -6
Here is the name entering fixed.
|
|
|
Post by kennn on Apr 25, 2020 9:03:38 GMT -6
tbird,Here is the name entering fixed. Good job!!!! You solved this very difficult problem beautifully. johnno56,Possibly a better player explosion animation; I totally agree with you. The explosion animation of the entry suddenly stops. Not natural. Do you remember the Asteroid example of Game Maker 3.3? The spaceship explosion animation is ideal. I suggest that you look into that animation. n00b,
RCBasic is sophisticated and mature. We are proud of RCBasic!
|
|
|
Post by johnno56 on Apr 25, 2020 9:37:20 GMT -6
Tbird,
Been racking the old brain for ages trying to figure out that problem. Very nicely done!! Thank you!!
Kennn,
The reason it 'suddenly stopped' is because the animation did not start. It is just a single image that was used as a 'stand in' until I could figure out the timing of the explosion frames. This will be my next target. It's gone 1:30am and I need to get some sleep. Maybe this time I will get more than 4.5 hours... lol Good night.
|
|
|
Post by kennn on Apr 26, 2020 1:38:48 GMT -6
Bug:
I am using Windows OS. The game does not save the high score data in the hiscores.txt file.
|
|
|
Post by johnno56 on Apr 26, 2020 4:07:19 GMT -6
That is most odd. I am aware of the differences in filenames for different systems, that is why I deliberately chosen 'not' to include file pathways (directories etc), but use only the hiscores.txt filename that will, by default, save to the same directory as the main game file.
My first guess would be that the problem may be with the Windows security system... Perhaps the file does not have permission to be written to the system. If that is the case then I am afraid I would not be of much help. Perhaps one of the other guys, who use Windows, may be able to help. By the way... Are you getting an error message when trying to save? When the game starts, if the hiscores.txt file does not exist, then a 'default' hiscores.txt file is automatically created. Either the game or your system should throw up an error or warning message when the game starts....
ps: I am confused... You played the last version and you made a comment about the rapid firing... The creation of the hiscores.txt file has been included since version alpha09_7. If that is the case then both the game 'and' the system did not complain when the hiscore file was created... I have to assume that when you start the game and you check the high scores via the menu, the table will be basically empty? Version 9_7 was released 'without' a hiscores.txt so as to test the ability of each machine to create its own file. If your machine does not have a file, then the problem is with Windows... It would need your permission to write the file to the hard drive... my guess... But usually it issues either a warning or an error message... again my guess...
Next time you start the game, check the high scores via the menu, and let me know the results?
|
|
|
Post by n00b on Apr 26, 2020 5:52:32 GMT -6
johnno56 kennn is right. It isn't a problem with the file system though. You had some bugs in your high score lib. Here is what you had for HS_Load: function HS_Load(filename$) FileOpen(0, filename$, TEXT_INPUT) if not fileExists(filename$) then '- You are checking if the file exists after you open it return false end if hs_MaxEntries = val(ReadLine(0)) hs_Scores[hs_MaxEntries] hs_Names$[hs_MaxEntries] for i = 0 to hs_MaxEntries - 1 '- You should exit the loop if end of file is reached before loop ends hs_Names$[i] = ReadLine(0) hs_Scores[i] = val(ReadLine(0)) next FileClose(0) return true end function Here are the changes I made: function HS_Load(filename$) if not fileExists(filename$) then '- Check if file exists before trying to load return false end if FileOpen(0, filename$, TEXT_INPUT) hs_MaxEntries = val(ReadLine(0)) hs_Scores[hs_MaxEntries] hs_Names$[hs_MaxEntries] for i = 0 to hs_MaxEntries - 1 If EOF(0) Then '- If End Of File is reached then exit the loop Exit For End If hs_Names$[i] = ReadLine(0) hs_Scores[i] = val(ReadLine(0)) next FileClose(0) return true end function I also made a change in your save function to have it open the file with TEXT_OUTPUT_PLUS that way it will always overwrite the previous highscores.txt file. Attachments:hiscore.bas (2.95 KB)
|
|
|
Post by johnno56 on Apr 26, 2020 6:13:31 GMT -6
My apologies, kennn. I should have spotted that... Thank you n00b for the fix. Much appreciated.
|
|
|
Post by kennn on Apr 26, 2020 8:38:30 GMT -6
johnno56,My apologies, kennn. I should have spotted that... Hi.... I did not report this bug before today because I wanted to test the entry again on my another computer today. (I wanted to make sure that it was a real bug. Not a false report. I was busy before today and therefore I could not test the entry on this another computer before today.) A new question: does the game needs to limit number of character entered by player?
n00b,
I believe that every forum member can learn a lot of things from this kind of community game project. Attachments:
|
|
|
Post by johnno56 on Apr 26, 2020 9:11:24 GMT -6
Good point about name size. I think maybe 10 characters would be enough... Fixed. (oh. I wish all the problems could be corrected 'that' quickly... lol) This will be in the next release...
|
|
|
Post by johnno56 on Apr 26, 2020 17:25:16 GMT -6
Hey guys,
Here is another release (incomplete) that is testing a screen shake when the player is hit (big or small rocks). This method has also provided an opportunity to animate the player explosion.
A small glitch prevented the shake from working in Windowed mode... It should now work in Full and Windowed Screen modes.
Let me know what you think?
ps: Kennn. The name should be ok. Let me know if it isn't?
Attachments:alpha09_8c.bas (28.7 KB)
|
|
|
Post by kennn on Apr 27, 2020 15:53:31 GMT -6
Hey guys, Here is another release (incomplete) that is testing a screen shake when the player is hit (big or small rocks). This method has also provided an opportunity to animate the player explosion. Creative idea! My suggestion: 1. If duration of screen vibration is longer, gamers may be more excited. 2. If magnitude of screen vibration is bigger, gamers may be more excited. Actually, how to control duration and magnitude of vibration? Well done again!!!!!!!!!!
|
|
|
Post by johnno56 on Apr 27, 2020 15:59:52 GMT -6
I am going to start to "compartmentalise" the game, so as to start a preliminary cleanup. (I will of course be working on a 'copy' of the game... lol)
I am still a little concerned about the scoring and the potential for another one of those rogue errors when writing the hiscore file. Since it was fixed, I have had only one occurrence but cannot remember if it was when quitting or continuing on either a full or windowed screen.
There are still a few days remaining prior to the deadline. Kennn has suggested power ups (and quite rightly so) but I have no experience creating them (apart from the shield that is... lol) so I am open to suggestions as to how to code it or them. I can easily handle the graphics (well, maybe not so easily... lol)
Seeing there is little time left, please do't suggest any "exotic" power ups like a fancy teleport or... Hmm... Teleport, limited range and frequency, maybe achievable... Press "T", the shield activates, player vanishes, short delay, pop up anywhere... Hmmm... As I said, "any exotic" power ups (except Teleport)... lol
Thinking caps on...
To quote from the movie, "When Worlds Collide" (22 Nov 1951)... "Hurry! There are only a few days left!"
Kennn, I had to restrict the "movement" of the screen... I think, 40 loops of moving randomly in all four directions, 2 pixels at a time. As it is, when the screen moves, you can just see the exposed "border" of the screen image. I suppose the "exposure" could be corrected if, the background "behind" the moving screen, was the same base colour of the moving screen... If I can do that, then yeah, it may be possible to increase the "shake"... Thanks for the suggestion.
|
|
|
Post by johnno56 on Apr 27, 2020 16:32:31 GMT -6
Kennn,
Instead of placing a coloured image behind the moving screen, I put the normal star background behind it, then increased the shake for 40 loops of 2 to 40 loops of 8.
Try it out...
|
|
|
Post by kennn on Apr 27, 2020 19:02:24 GMT -6
Kennn,
Instead of placing a coloured image behind the moving screen, I put the normal star background behind it, then increased the shake for 40 loops of 2 to 40 loops of 8.
Try it out...
Hi..... Cannot load these images: Line 71: loadImage(1,"backgrounds/background01.png") Line 76: loadImage(11,"images/explodePlayer3.png")
|
|