How To

If there is a way to clone sprites ?

0

gamer_12321 2020-01-01 18:28

I want to make a random map generator but I’m don’t know how to clone sprites

(Like in scratch)


Timo 2020-01-01 20:50

What do you mean with clone? I don't know scratch well. Use the same image for several objects? Or use the same logic for different objects?
If you are talking about maps, do you mean tiles/cells instead of sprites?


gamer_12321 2020-01-01 21:16

Just copy the current sprite.
Example : You have SPRITE 1 and you want to « copy » the current image to a single « clone ». Then you get 1 Sprite and 1 image.
The clone cannot move ...


was8bit 2020-01-01 21:45 (Edited)

SPRITE s are just like an empty shelf... they hold reference data... they dont actualy hold graphical data at all... they merely link to a CHARACTER number, or a block of character numbers...

Should the graphics for the characters change via code (as in COPY) that the sprite links to, then the sprite instantly changes...

Also, you may manually change what image the sprite shows by changing its character# reference...


was8bit 2020-01-01 21:47

SPRITES in scratch are actual vector graphic files...

SPRITES in NX use the graphics stored in CHARACTER file, the ones you edit with the Character Designer


was8bit 2020-01-01 21:48

If you want to create a random map to the background, i will post an example for you :)


was8bit 2020-01-01 22:23

Here you go :)

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


Log in to reply.