Thanks Flinx!
Somehow when I looked ploufs answer, I thought the code was just reply from mine. Didnt realise it was whole new code, which also answers the question.
Thanks plouf, useful example which shows the answer.
Search found 1417 matches
- Sat Jun 06, 2026 9:42 pm
- Forum: General programming
- Topic: Is NIL argument later defined still a local?
- Replies: 4
- Views: 250
- Sat Jun 06, 2026 10:39 am
- Forum: General programming
- Topic: Is NIL argument later defined still a local?
- Replies: 4
- Views: 250
Re: Is NIL argument later defined still a local?
Point being that functions arguments are Func(A, B, C, D) now if this Func in practice is called only with A, B, C = Func(1, 2, 3) then it means that D was never sent, and is therefore NIL inside the function. If I then assign D as empty table inside the Function, when it is NIL, then will it still ...
- Fri Jun 05, 2026 10:18 pm
- Forum: General programming
- Topic: How to saturate just one colo (R, G, B)?
- Replies: 2
- Views: 218
Re: How to saturate just one colo (R, G, B)?
I guess that will do the trick, indeed, but I guess might be bit slow, as it makes the change to every pixel independently. If no one gives other solutions, I might give this a try, but my guess is that this would be too slow for Amigas, but then again, basically any effect is always done to every p...
- Fri Jun 05, 2026 12:58 pm
- Forum: General programming
- Topic: Is NIL argument later defined still a local?
- Replies: 4
- Views: 250
Is NIL argument later defined still a local?
I have my own DisplayBrush function, and I just ran into a situation, which isnt that critical, but just wanting to keep the code clean. Function MyDisplayBrush(ID, X, Y, OpArgs) if OpArgs <> NIL do stuff else OpArgs = {} Endif DisplayBrush(ID, X, Y, OpArgs) Main MyDisplayBrush(1, 200, 300) This is ...
- Thu Jun 04, 2026 10:04 pm
- Forum: General programming
- Topic: How to saturate just one colo (R, G, B)?
- Replies: 2
- Views: 218
How to saturate just one colo (R, G, B)?
I am trying to achieve basically similar effect as Wizball Game has. In Wizball you collected colors, and as you got them, the game started having more colors appearing. I am trying to do something similar. As in, first level starts all gray, and as level progresses, the RED color will start gradual...
- Sun Apr 12, 2026 7:36 am
- Forum: General programming
- Topic: table dimensioning...
- Replies: 3
- Views: 12245
Re: table dimensioning...
Plouf explained correctly, but might be easier to understand it this way. The point here is that you can't just make Table = {} and then use something like Table.x{1].sub[2], because you have not made any tables beyond "table", as in Table.x doesn't exist yet, you have to first do it using...
- Wed Mar 11, 2026 8:13 am
- Forum: Wishlist
- Topic: Wishlist: Physics Engine
- Replies: 2
- Views: 55588
Wishlist: Physics Engine
I have never used actual Physics Engines, just done something similar, very light, myself.
But to my understanding LUA has some Physics Engines available, so I wonder how hard would it be to make Physics Engine plugin from one of them?
That could be useful I suppose.
But to my understanding LUA has some Physics Engines available, so I wonder how hard would it be to make Physics Engine plugin from one of them?
That could be useful I suppose.
- Fri Mar 06, 2026 1:05 pm
- Forum: Hollywood bugs
- Topic: Minor bug with SeekMusic
- Replies: 9
- Views: 37245
Re: Minor bug with SeekMusic
AvCodec seems to fix the issue. Compariosn between using SeekMusic with AvCodec on and without it, result in SeekMusic jumping to completely different locations, several seconds apart when jumping to location at about 2 minutes.
Thanks from the suggestion Flinx, can use this to solve my problem.
Thanks from the suggestion Flinx, can use this to solve my problem.
- Wed Mar 04, 2026 10:14 pm
- Forum: Hollywood bugs
- Topic: Minor bug with SeekMusic
- Replies: 9
- Views: 37245
Re: Minor bug with SeekMusic
No, not using avcodec plugin for this test.
- Wed Mar 04, 2026 7:40 pm
- Forum: Hollywood bugs
- Topic: Minor bug with SeekMusic
- Replies: 9
- Views: 37245
Re: Minor bug with SeekMusic
And more info. I tried with a different file, and it works fine. So has to do with the specific MP3, going to email you the file.