How To

Where is the “point” command?


Kai 2019-01-27 15:29

I am a beginner at lowres nx and i switched from lowres coder a couple of months ago. I cant seem to find the “point” command that will display a pixel at a certain postition. Im trying to make a star scroll bg and i cant seem to find the right commands for it. Could someone help?

was8bit 2019-01-27 17:11

Currently NX does not directly support pixel placement, it is based on "CHARACTER" placement..

Let me make something for you that you might like :)

was8bit 2019-01-27 17:26

The attached program uses character 1 graphic, background 1, color set 0, a main DO LOOP and this line that controls the scroll speed..


MOD 1 would be the fastest speed, a bigger number would slow if down, the number has to be a whole number at least 1, or higher...

You can edit character 1 to change how the stars look... the code randomly flips the star character to randomize the overall appearance :)

Star Scroll.nx | Open in app
2019-01-27 17:26

was8bit 2019-01-27 17:27 (Edited)

Your game needs to fit inside the main DO LOOP as that what scrolls the stars :)

was8bit 2019-01-27 17:34 (Edited)

There "IS" a complicated way to get full screen pixel placement...

However, it slows NX down, you lose a background and page 1 of the character graphics cannot be used, and you have to use a core code that "tricks" NX to do it...

As a beginner in NX, I would focus on a mindset of building your game with character graphics... that's the power of NX... you can easily create animations with it too... and sprites are MUCH more powerful in NX :) they are built with character graphics and can be 1x1, 2x2, 3x3, or 4x4 character graphics big :)

Also, as my code demonstrates, character graphics can be used as tiles to create a background :) I did mine manually, but the background designer can help you design a background as easily as character designer can create character graphics :)

Timo 2019-01-27 18:26 (Edited)

Yes, think in sprites and tile maps. So whenever you want to move objects (even single pixels) freely around the screen, use sprites.
If you want a star background (fix or scrollable), you can create characters with some star pixels and create a tiled background of it.
At first you have to understand how to use the Char Designer. Then for backgrounds you need the BG Designer.

was8bit 2019-01-28 06:04

This version looks better...

Star Scroll 2.nx | Open in app
2019-01-28 06:04

was8bit 2019-01-28 06:18

This one uses bigger stars using sprites...

Star Scroll 3.nx | Open in app
2019-01-28 06:18

Kai 2019-01-30 11:44

Thank you!

was8bit 2019-01-30 12:08

Hope this helps :)

Please post again with any questions :)

Log in to reply.