How to?

2

Troyer_05 2022-04-25 22:43

Hi, I designed that but how I often said i don‘t know and I can‘t learn that new programming langunge……

Soo i need your help. It would be verry nice if anyone could tell me how i can display the designed thing :/

thanks..

?.nx | Open in app
2022-04-25 22:43

Jeanmilost 2022-04-26 00:15

Here is a minimal code using sprites to draw your content:
DO
'CONFIG SPRITE 0 AS 16X16 SPRITE (SIZE 0=8X8, SIZE 1=16X16, ...)
SPRITE 0 SIZE 1
'DRAW SPRITE 0 AT X=50, Y=50 WITH CHAR 1 IN THE EDITOR
SPRITE 0, 50, 50, 1
'WAIT UNTIL THE NEXT FRAME
WAIT VBL
LOOP

However be aware that here is not the good location to post questions about programming, there is a forum for that:
https://lowresnx.inutilis.com/forum.php

Also LowResNX is provided with a technical documentation in which all the instructions are described.


was8bit 2022-04-26 04:33

Here is a sampler.... post here if you need help... also update your top program with your upgraded code :)


was8bit 2022-04-26 05:43 (Edited)

For single questions about a general issue, the FORUM is best...

But, if you are trying to make a program or game, it's ok to start it HERE, just be sure you upload all new updates to the one post you started... so for example, you will end up with something like this...

https://lowresnx.inutilis.com/topic.php?id=2285

... and my game still isn't finished ... ;)

So if you are wanting to make a little something using your graphic, I might rename the title of this post with a more proper name .. like "CM adventure" or something ...


was8bit 2025-01-24 16:16

Here is a simple example of your program...

Sampler Example 1.nx | Open in app
2025-01-24 16:16

was8bit 2025-01-24 17:13

Additionally, i have reformatted one of your original games into lowesnx format...

This simple approach uses single cell graphics, no sprites... but edits and uses the background grid, reads graphics on the background grid, etc...

Later i will show you a sprite driven version... but this first one is the easiest approach...

ID method game EZ.nx | Open in app
2025-01-24 17:13

was8bit 2025-01-24 17:17 (Edited)

So, i used the Background editor to lay out the background design..

... the code then copies the background design into the actual game background

... i have then written code that can read what image#s are in the game background, and also it can edit (remove, add) images on the game background...


was8bit 2025-01-24 17:20 (Edited)

SUB is a powerful feature... variables inside a sub exist only inside the SUB... however, variables passed via the CALL allows the SUB to edit thosed passed variables...

Care must be taken with SUBs... once you understand their power, it can GREATLY simplify and empower your code ;)

So, if you had several players and or computer players, you can carefully rewrite the MOVE SUB to move ANY players, keep them from hitting walls, and returning what they hit so then your main game code can write specific code for who is touching what and what happens with that contact


was8bit 2025-06-19 23:12

... this is the simplest method....

Firs EZ.nx | Open in app
2025-06-19 23:14

Log in to reply.