How do I create sprites in specified area

Just started using Construct 2? Post your questions here

Post » Thu Mar 24, 2016 12:00 pm

hi everyone...
this is my first game on construct 2.....i'm going through some tutorials these days but i couldn't find a way to create sprites in specified area ....so i thought its better to get help from experts.....my game almost like "ghost shooter" game but i want to make monsters came in specified places.....how can i do it....?


thank you.
B
4
S
1
Posts: 2
Reputation: 304

Post » Thu Mar 24, 2016 12:47 pm

When you spawn an object (either from another or in create object via system), you can set their spawn X/Y.
Zelda Gamekit (my project)



Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
51
S
24
G
30
Posts: 534
Reputation: 19,620

Post » Thu Mar 24, 2016 9:19 pm

Please check out the Vertical Space Shooter Template when you open a new project in Construct. The example specifies the X/Y coordinates the enemies/stars spawn.

The other common way as LaDestitute mentioned is to use an invisible sprite object as a placeholder, and use that sprite object's "Spawn another object" action to create the sprite.
Mistakes were made.
B
52
S
26
G
110
Posts: 1,619
Reputation: 62,159

Post » Fri Mar 25, 2016 5:19 am

thanks @LaDestitute and @oosyrag for quick response........that space shooter template really helpful...........
B
4
S
1
Posts: 2
Reputation: 304


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 3 guests