Search found 121 matches

by ITomi
Aug 17, 2019 12:58
Forum: Game Dev
Topic: Mouse trouble
Replies: 21
Views: 5958

Re: Mouse trouble

dodicat wrote:ITomi
Didn't you try my change to your code?


Not yet, but I begin to make simplier the code and I will use your change too.
Thank you for everybody!
by ITomi
Aug 17, 2019 10:02
Forum: Game Dev
Topic: Mouse trouble
Replies: 21
Views: 5958

Re: Mouse trouble

Here is the key to my problem: if (mousebutton and 1) then if mousex>=scrollarrows(i).xplace and mousex<=scrollarrows(i).xplace+64 and mousey>=scrollarrows(i).yplace and mousey<=scrollarrows(i).yplace+64 then select case scrollarrows(i).itssprite case leftarrowspr(0) scrarrsprite=leftarrowspr(1) cas...
by ITomi
Aug 17, 2019 8:18
Forum: Game Dev
Topic: Mouse trouble
Replies: 21
Views: 5958

Re: Mouse trouble

Yes, BasicCoder2, my problem is exactly that you explain your code. I thought, something wrong with the FOR loop in my program somewhere here: (...) elseif leftmousebuttonpressed=1 and mousex>=scrollarrows(i).xplace and mousex<=scrollarrows(i).xplace+64 and mousey>=scrollarrows(i).yplace and mousey<...
by ITomi
Aug 16, 2019 13:48
Forum: Game Dev
Topic: Mouse trouble
Replies: 21
Views: 5958

Re: Mouse trouble

I wrote a piece of code focusing onto my problem. In this you can click the left and right circles to scroll the circles within. But only works with the right scroll circle, backwards not. #include "fbgfx.bi" Using FB dim shared as ubyte numofshowicon,leftmousebuttonpressed=0,arraystart,ca...
by ITomi
Aug 15, 2019 7:37
Forum: Game Dev
Topic: Mouse trouble
Replies: 21
Views: 5958

Re: Mouse trouble

Hello Dodicat!

My problem is now with the FOR loop, because I don't understand why is it not execute the SELECT CASE in case of i=0? (See the code in my first post.)
What happening with the SELECT CASE within the loop?
by ITomi
Aug 14, 2019 13:15
Forum: Game Dev
Topic: Mouse trouble
Replies: 21
Views: 5958

Re: Mouse trouble

I almost solved my problem, but something still wrong. Here is the FOR loop in a nutshell, that manage the two arrows, which show icons to the player: for i as ubyte=0 to 1 if scrollarrow(i).exists=1 then (...) (manage the mouse) if (mousebutton and 1) then (if mouse over scrollarrow(i) then change ...
by ITomi
Jul 12, 2019 18:15
Forum: Game Dev
Topic: Mouse trouble
Replies: 21
Views: 5958

Re: Mouse trouble

Thank you for your answers, Badidea and Dodicat! I will try these.
(Badidea, you can't run my code directly, because these are only few lines from my program.)
by ITomi
Jul 12, 2019 13:14
Forum: Game Dev
Topic: Mouse trouble
Replies: 21
Views: 5958

Mouse trouble

Hello members! I have a big problem: I would like to scroll 3 images between two arrow icons. These 3 images are part of more images, but I would like show these 3 ones once, therefore I need the two arrow icons to scroll. Everything is OK until this point. But I would like to scroll only if the pla...
by ITomi
Oct 06, 2018 8:30
Forum: Beginners
Topic: playing sounds with fmod
Replies: 13
Views: 2225

Re: playing sounds with fmod

St_W: I used a free channel with FSOUND_FREE option. What will happen if I stop sound on this channel? All sounds will stop in the game?

Dodicat: is the Regulate function controls the speed of your program? May I use it in my games too?
by ITomi
Oct 03, 2018 9:05
Forum: Beginners
Topic: playing sounds with fmod
Replies: 13
Views: 2225

Re: playing sounds with fmod

Thanks, UEZ! I have found this page on the web: https://documentation.help/fmod/FSOUND_Sample_Load.html and on the basis of it I rewrote my code: mysound=FSOUND_Sample_Load(FSOUND_FREE,"sounds\a_sound.wav",fsound_loop_normal,0,0) But when I use the fsound_stopsound(mysound) command, the so...
by ITomi
Sep 29, 2018 14:10
Forum: Beginners
Topic: playing sounds with fmod
Replies: 13
Views: 2225

Re: playing sounds with fmod

Hello all! I have a question that suits here (at least, I hope :-) ). How can I loop sounds with FMOD? I would like play a sound continuously in my game until a certain game object exists. Is there a command for it or can I solve it something the following way: if fsound_sound_ispalying(sound)=false...
by ITomi
Jul 21, 2018 9:15
Forum: Projects
Topic: The island - An RTS game
Replies: 116
Views: 10472

Re: The island - An RTS game

Unfortunately I also have no time to play with these games, but since I started to programming, I realized that making games and other programs are much better than just play.
Programming is my main gratification. And it seems I have grew up - unfortunately: I would like be forever young. :-)
by ITomi
Jul 21, 2018 8:57
Forum: Beginners
Topic: beginner's questions
Replies: 25
Views: 4418

Re: beginner's questions

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... :-(
by ITomi
Jul 20, 2018 12:41
Forum: Beginners
Topic: beginner's questions
Replies: 25
Views: 4418

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...
by ITomi
Jul 20, 2018 11:32
Forum: Game Dev
Topic: Speed
Replies: 25
Views: 3132

Re: Speed

deltarho[1859] wrote:I should have mentioned that timeBeginPeriod is Windows only.


Because of "Lib "winmm""? And what happening if I omit the SetTimer function and use only Sleep command?

Go to advanced search