How to spawn an object, but always on different imagepoint

Just started using Construct 2? Post your questions here

Post » Thu Oct 16, 2014 9:51 pm

Hello
Its hard for me to explain my issue so I ve made caps. file..

platform game.capx


So when Player destroys that crate, I want to create that crate again but on platform- imagepoint 2. Then when crate is taken again -> create it on platform-imagepoint 3 and then, repeat that process, so it appears again on platform-imagepoint 1. :D
You do not have the required permissions to view the files attached to this post.
B
10
S
2
Posts: 9
Reputation: 644

Post » Thu Oct 16, 2014 10:29 pm

For sure it is not the best way, but it works(if I understood what you want) and was what I thought in the moment.

test.jpg
You do not have the required permissions to view the files attached to this post.
B
5
S
1
Posts: 4
Reputation: 373

Post » Thu Oct 16, 2014 11:09 pm

yes yes you understand what I want :D
Thanks for help :)
B
10
S
2
Posts: 9
Reputation: 644

Post » Thu Oct 16, 2014 11:52 pm

...or you can use Spawn object.. no need to type every time X..Y
You do not have the required permissions to view the files attached to this post.
Image
B
65
S
23
G
7
Posts: 1,503
Reputation: 10,892

Post » Thu Oct 16, 2014 11:59 pm

Or just stop making games.
B
56
S
15
G
13
Posts: 826
Reputation: 17,645

Post » Fri Oct 17, 2014 12:02 am

Setting the position wreaks less havoc on the cpu. The more objects you create throughout the life of the program, the more negative the more the cpu is bogged down. You obviously won't see a difference with only one object, but when you have more than 20 spawning and being destroyed, over and over again, you can see a major difference.

If you're looking to move it to another place on screen that's visible, you can always set it to invisible on collision, move the sprite, then when it's time, set it to visible.
B
10
S
1
Posts: 67
Reputation: 909

Post » Fri Oct 17, 2014 11:01 am

Thanks for your replies guys I appreciate that :)
B
10
S
2
Posts: 9
Reputation: 644

Post » Fri Oct 17, 2014 11:03 am

Tekniko wrote:Or just stop making games.

hh, what ? :D You wont have to play my game when I finish it :D
B
10
S
2
Posts: 9
Reputation: 644

Post » Sat Oct 18, 2014 9:52 pm

@Tekniko received a PM asking him to be more considerate when posting. Such reactions makes no sense and are really not constructive.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
289
S
112
G
94
Posts: 7,333
Reputation: 69,287

Post » Sun Oct 19, 2014 1:43 pm

@iwontnamemyself could you specify this a little further?
Setting the position wreaks less havoc on the cpu. The more objects you create throughout the life of the program, the more negative the more the cpu is bogged down. You obviously won't see a difference with only one object, but when you have more than 20 spawning and being destroyed, over and over again, you can see a major difference.


do you mean the progreamm will run slower and slower over time? i made a top down shooter spawning and destroying the same anemys over and over again, so far i didnt noticed an impact...

regards
joschi
B
19
S
7
G
1
Posts: 222
Reputation: 2,546

Next

Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests