How to call upon images to continuously appear?
Asked Answered
P

1

0

I'm making a cookie clicker type game and as the numbers of cookies hits a certain milestone (ie every 50 cookies a person appears), I want to add a image on screen of a person and remove a person randomly in space as the cookie count increases/decreases.

Right now, I'm thinking about limiting to the amount of people that disappear/appear on screen to 7, but I don't know how to make them appear/disappear depending on how many cookies are earned. Help?


Panga answered 29/8, 2022 at 0:4 Comment(0)
M
0

The only problem with your code is that you need to use get_node() from the parent. You can use find_node() with recursive set instead. Or, you could just make the people children of the same node.

Mixologist answered 29/8, 2022 at 2:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.