Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | cswjghm |
Hey guys, I’m creating a 2D game where a player (represented by a simple colourful circle using AnimatedSprite) WASD moves around the screen. Player can ‘stamp’ anywhere on the screen with Spacebar key, and with every stamp, the player’s circle increases in size. The look of the ‘stamped’ result is retrieved from whatever circle colour/size was displayed.
Problem: I dont know how to create that stamped effect that stays permanently on screen throughout the game (so the screen will be filled with random coloured/sized circles at the end). And how do i retrieve data for colour and size?
Thanks everyone for your help!!
There may be a more eloquent way to do this, but one method would be by creating a copy of the player’s current sprite, and re-parent it to just be another node in the world.
denxi | 2020-02-19 18:54