Sorry, I just thought I don't open a new topic because of my two questions if already exist a topic with similar title. I thought, it is a good idea to put these into one instead of open a new topic, as I'm also a beginner.
Sorry once more... :-(
Search found 154 matches
- Jul 21, 2018 8:57
- Forum: Beginners
- Topic: beginner's questions
- Replies: 25
- Views: 6451
- Jul 20, 2018 12:41
- Forum: Beginners
- Topic: beginner's questions
- Replies: 25
- Views: 6451
Re: beginner's questions
I have 2 questions to skilled FB programmers: 1. How can I hide the mouse cursor without deactivating it? The SetMouse is not good for me, because it although hide, but deactivate the mouse. Or is there a possibility to change the mouse cursor to other sprite? 2. Is there a possibility in FB to scal...
Re: Speed
Because of "Lib "winmm""? And what happening if I omit the SetTimer function and use only Sleep command?deltarho[1859] wrote:I should have mentioned that timeBeginPeriod is Windows only.
Re: Speed
Thank you, Deltarho[1859], for your attention and addition. That is an interesting phenomenon from Intel i7 CPU (I have an AMD A4-4000 CPU in my PC).
I tried your code and if it is really safe for all CPU types then I will use it. I didn't know that using of Sleep is so important in the codes.
I tried your code and if it is really safe for all CPU types then I will use it. I didn't know that using of Sleep is so important in the codes.
Re: Speed
Thanks, Pitto! That article and the demos there are truly helpful. I would like also be a real pro programmer like that guys, who publish their demos there.
Now I'm working on an FPS and a Millipede remake game. I hope, these will be faultless in every respect, included speed too.
Now I'm working on an FPS and a Millipede remake game. I hope, these will be faultless in every respect, included speed too.
Speed
Hello! I would like make a safety solution that control the speed of my games, in order to run the game same speed both on slow and fast computers. I invented this code for this, what clocks the fps: dim as integer fps,frame dim as double starttime fps=0 frame=0 starttime=timer do cls if timer-start...
- Jul 17, 2018 12:44
- Forum: Beginners
- Topic: The island - An RTS game
- Replies: 117
- Views: 23117
Re: The island - An RTS game
Hello BasicCoder2! I hope, you didn't run into serious glitches in the game. Its goal to annihilate all the other units and buildings on the island. If you find it too hard, try to build first a barrack ("Laktanya") and train warriors from it, just click on a barrack and the icon of the wa...
- Jul 15, 2018 14:29
- Forum: Beginners
- Topic: The island - An RTS game
- Replies: 117
- Views: 23117
Re: The island - An RTS game
Hello everybody!
Here is the game, without errors. At least it works correctly on my computer. The URL already known:
http://www.programozzunk.ucoz.hu/fbjatekok/sziget.zip
Enjoy! :-)
Here is the game, without errors. At least it works correctly on my computer. The URL already known:
http://www.programozzunk.ucoz.hu/fbjatekok/sziget.zip
Enjoy! :-)
- Jul 14, 2018 12:23
- Forum: Beginners
- Topic: The island - An RTS game
- Replies: 117
- Views: 23117
Re: The island - An RTS game
" So no more work on The Island? " On the contrary, after all I just now find the errors with -exx option. That FPS will be totally different game, but first I try to correct the glitches of the RTS. " I had toyed with the idea of reproducing your game using my own coding. " You ...
- Jul 13, 2018 16:33
- Forum: Beginners
- Topic: The island - An RTS game
- Replies: 117
- Views: 23117
Re: The island - An RTS game
Hello SARG! I just now doing that. I found an error in the "kepbetolt.kbt" file, where I had to change number 4 to 2 in the loops from line 390 to line 425 ( for i as ubyte=1 to 2 ) and rewrite the array index above ( dim shared emberdolg(7, 0 to 1 ) as any ptr ). Now I correcting the erro...
- Jul 13, 2018 8:31
- Forum: Beginners
- Topic: The island - An RTS game
- Replies: 117
- Views: 23117
Re: The island - An RTS game
- " It's started a few years ago as a Game Maker project, but the result was unplayable because of its slowness. " - " I wonder why? " I don't know what was wrong with it, after all I built the code up reasonable, but the game produced 16-18 fps on average. Then I decided, I atte...
- Jul 12, 2018 16:30
- Forum: Beginners
- Topic: The island - An RTS game
- Replies: 117
- Views: 23117
Re: The island - An RTS game
badidea : " 0.5 MB bas file, that's a lot of code. " Perhaps. But I can't really compare to other similar FB games, because I don't know so much. " A nice open source (not in FreeBASIC) settlers like game is Widelands " Oh, I didn't know this game, but looks like very good! My w...
- Jul 11, 2018 12:19
- Forum: Beginners
- Topic: The island - An RTS game
- Replies: 117
- Views: 23117
Re: The island - An RTS game
But in FreeBasic I still can't use Hungarian diacritic letters, therefore I thought, write these names onto the sprites. Maybe use draw string and your own fonts? Hello BasicCoder2! The problem is that I don't know how to use own fonts in FB. I'm still so "green" with this programming lan...
- Jul 10, 2018 15:54
- Forum: Libraries & Headers
- Topic: MiniB3d for FreeBasic
- Replies: 1083
- Views: 306304
Re: MiniB3d for FreeBasic
Hello! I have a little problem. I would like build up a 3D world on the basis of a 2D map. Everything OK, all trees, enemies are visible - except the player's weapon. Here is my code: dim as ubyte w,h,value,x,z select case which case 1 restore level1 end select read w read h x=1 : z=1 for i as ubyte...
- Jul 10, 2018 12:35
- Forum: Beginners
- Topic: The island - An RTS game
- Replies: 117
- Views: 23117
Re: The island - An RTS game
Yes, because the names are parts of the building sprites, and not separated printouts. I was foolish enough to do so at the beginning of developing, I'm sorry. But in FreeBasic I still can't use hungarian diacritic letters, therefore I thought, write these names onto the sprites. Then I forgot make ...