Positioning many actors by coordinates
jordanpt
Member Posts: 3
Hello
Does anyone know how I could put a lot of small actors on the screen. I want to make a forest with a lot of trees.
Does anyone know how I could put a lot of small actors on the screen. I want to make a forest with a lot of trees.
Comments
For a 10x10 actor with 5px gap it would be:
Replicate:
Direction: 0, Copies: 50, Spacing: 15
That will copy 50 of them along one line.
You could also achieve a more grid like layout with timers and/or loops but you may find that they'll be slow with that many actors.
Perhaps someone will have a better suggestion for you.
If self.position.x < 1024 (or something like that)
Spawn actor offset x 15
I am not sure if this can help as i never tried it and can lagg a lot
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
I'm sure there are faster/better ways, but it would solve your immediate problem maybe?
Just make sure you have a large enough 'staging area' to put all the trees in before they move!
Hope it helps!
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io