Search found 1422 matches
- Mon Jun 15, 2026 8:55 am
- Forum: General programming
- Topic: Any way to know at Which index a table item resides when Item sent as ARG to Function?
- Replies: 2
- Views: 72
Re: Any way to know at Which index a table item resides when Item sent as ARG to Function?
But even with ForEach, you still would need to know the main tables name where the Wall item is from. I mean, in this examples case all the walls probably reside in some single table. But this was just to illustrate the problem I have run into several times in my codes. As in, to make it more compli...
- Sun Jun 14, 2026 9:26 pm
- Forum: General programming
- Topic: Any way to know at Which index a table item resides when Item sent as ARG to Function?
- Replies: 2
- Views: 72
Any way to know at Which index a table item resides when Item sent as ARG to Function?
This is something that often happens in my codes: Walls= {} Walls[1] = {hp=100} Walls[2] = {hp=150} StartX = 100 SpaceBetween = 200 Y = 300 Function DrawOnTopOfWall(Wall) GFX.DisplayBrush(StartX + SpaceBetween * IndexNumber, Y) EndFunction Point in this example is, that I dont want Walls to have X a...
- Sun Jun 14, 2026 8:43 am
- Forum: Wishlist
- Topic: Cannot read file file.png ! - more descriptive.
- Replies: 0
- Views: 70
Cannot read file file.png ! - more descriptive.
Change "Cannot read file picture.png !" into "Cannot read file picture.png ! - file doesnt exist" in case problem is that it didnt find the file. I yesterday spent 1-2 hours bug trying to figure out what I had accidentally done for new GIMP saved PNG-files not to open, when older...
- Fri Jun 12, 2026 8:32 pm
- Forum: General programming
- Topic: How to saturate just one colo (R, G, B)?
- Replies: 4
- Views: 1293
Re: How to saturate just one colo (R, G, B)?
Thanks from suggestion amyren. However, I think this has two problems. First is that if I understood that command correctly, it is basically meant for pictures with Palette, as in, Classic Amiga style palettes. This isnt impossible option to convert the images to for example 256 color images instead...
- Wed Jun 10, 2026 12:48 pm
- Forum: Showcase
- Topic: Super Trevor Land - isometric platform / jump and run game
- Replies: 12
- Views: 1297
Re: Super Trevor Land - isometric platform / jump and run game
There is now also a HTML5 version that can be played directly in the browser. To play it, simply visit the page https://a500fan.itch.io/super-trevor-land and click the "Run Game" button. The HTML5/browser version was not written in Hollywood. To my surprise, Claude was able to port my Hol...
- Sat Jun 06, 2026 9:42 pm
- Forum: General programming
- Topic: Is NIL argument later defined still a local?
- Replies: 4
- Views: 1279
Re: Is NIL argument later defined still a local?
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.
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.
- Sat Jun 06, 2026 10:39 am
- Forum: General programming
- Topic: Is NIL argument later defined still a local?
- Replies: 4
- Views: 1279
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: 4
- Views: 1293
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: 1279
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: 4
- Views: 1293
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...