Question by
ladiesandgonts · Feb 17, 2017 at 02:17 PM ·
instantiateraycast
How to hold down mouse and keep spawning cubes in a line
I want to make a game where the player gets to build temporary structures out of simple cubes.
I created a script using raycasting and instantiation to spawn single cubes that I set to spawn where I clicked and at consistent rotation.
However this would take a long time for someone to build anything.
So I want to let them hold down their mouse and it will spawn a number of singular cubes for as long as they hold it down.
This is really hard however to me and I would appreciate any help.
Comment