random respawn error

Bugs will be moved here once resolved.

Post » Wed Mar 04, 2015 5:35 am

So I've been having problems with respawning am object. I designed a simple game where there is a square and when you click on it you gain 1 point. When you click on it the object respawns to a random location (which is what I wanted).
I did this by doing the following
'Set position'
X axis....random (950)
Y axis....random (450)

Since the screen has been set to 1280 x 715 it gives plenty of excess space so that the square does not go of the screen. The cube is 90x90.

So the problem is that when it respawns it occasionally goes half off the screen so only half of the cube is visible on the screen even when u set the randon position to 'x axis random (200)' and 'y axis random (100)' it still spawns partly off the screen. Any ideas????

Thanks so much
B
8
S
2
Posts: 146
Reputation: 1,132

Post » Wed Mar 04, 2015 8:32 am

@zikdot

This is the section for bugs in the C2 software.

If you are saying there is a bug, then you must follow the bug reporting guidelines and include a.capx with precise instructions. If not, then Ashley will close this automatically.

To me, this just looks like a question that should be posted in the 'How Do I' section.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
124
S
29
G
70
Posts: 4,973
Reputation: 49,685

Post » Wed Mar 04, 2015 12:23 pm

Sorry just realised
B
8
S
2
Posts: 146
Reputation: 1,132

Post » Mon Mar 09, 2015 12:10 pm

Closing as not a bug.
Scirra Founder
B
366
S
217
G
82
Posts: 23,243
Reputation: 183,484


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest