Hey. So, what I'm trying to do is create an enemy at a random position, but inside these coordinates:
X: Between -30 and 1580
Y: Between -1045 and 2250
The code should look like this:
I've been Googling and attempting for two hours, and I'm getting frustrated. Could any experienced programmers point me in the right direction? Thanks in advance.Code:tEnem.x= //random between -30 and 1580 tEnem.y= //random between -1045 and 2250




Reply With Quote
