T
tidlon
Guest
Hi I am kind of new to programming and I am trying to make cubes spawn randomly from center top of an object/sprite, so this is what I currently have...
and here is the code for the object that I want to spawn...
but it end up spawning the cubes a bit to the right of the object and not in the middle of the object as I want it to... like this
https://i.gyazo.com/4a3c1a777597026b9db05faaebd6a36a.mp4
please help.. how do I make it so the cubes spawn in the middle of the actual object (the object is the grid in the middle)
and here is the code for the object that I want to spawn...
but it end up spawning the cubes a bit to the right of the object and not in the middle of the object as I want it to... like this
https://i.gyazo.com/4a3c1a777597026b9db05faaebd6a36a.mp4
please help.. how do I make it so the cubes spawn in the middle of the actual object (the object is the grid in the middle)