Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
need some math that will create an object at random time intervals in randome locations... tried random(window.height,window.width) but that didn't work
Here:
https://www.dropbox.com/s/ysgq9jbgydm37 ... .capx?dl=0
Develop games in your browser. Powerful, performant & highly capable.
for starters it's X, Y (width, height) not Y,X
Try this demo
thanks they both work well - one more thing.... how can I have it AVOID being created ontop of a certain object I have roads set as solids and I dont want them spawning there...
use solids coordinate and use that as your guide not to spawn objects on
got it i figured it out - I actually just set it to check if it is overlapping either and if it is to destoy it and pick another spot... seems to work ok...only prob I having now is the enemy tank runs around but sometimes is getting stuck on the side walls and wont move... I added a buffer to the side walls and added that to his obstacles but he still gets stuck on that now... seems when he rotates he overlaps the buffer and gets stuck...