Spawning at a particular point

For questions about using Classic.

Post » Wed Sep 01, 2010 7:51 am

I know how to spawn an option but I can't work out how to get it to spawn at a particular position on the screen.
:?:
B
4
G
2
Posts: 42
Reputation: 811

Post » Wed Sep 01, 2010 8:22 am

System.Spawn Object
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Wed Sep 01, 2010 1:17 pm

As an action to any given event:

System: Create object
Inside that there will be x and y coordinates. You can use expressions (such as "get x of ____" and calculations such as "displaywidth/2").

One of my debug tricks is to spawn an object at a random screen position by using

Create object at
x = "random(displaywidth)"
y = "random(displayheight)"
B
2
G
2
Posts: 42
Reputation: 734

Post » Wed Sep 01, 2010 9:04 pm

Aaah ... I was use the spawn option under the individual sprite and not the system creation ... thanks :D
B
4
G
2
Posts: 42
Reputation: 811


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest