Create an object when there is none in a specific area

Get help using Construct 2

Post » Thu Jul 02, 2015 1:17 pm

I want to create a random object outside the layout on which bullet behavior is enabled which moves it down. I am trying to perform it in this order,

[*]Create object which moves down.
[*]When it enters the layout, check if it have traveled the distance that equals its own height.
[*]When it meets the condition, create another object (once) outside the layout, that will move same as first created.

I have compared Y with Height but of no use. Any suggestions?
B
4
Posts: 12
Reputation: 226

Post » Thu Jul 02, 2015 1:44 pm

If its a scrolling background you want to make, there are quite few examples around.


Anyway,

spawn object on y -10

System, compare 2 values: object.bullet.distance traveled > WindowHeight + 10
action spawn another on y - 10
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,562

Post » Thu Jul 02, 2015 1:51 pm

I have created a family of objects with different heights, so when an object will be created it will be of different height. I want to compare the height with distance, like if object's height was 100px I want to check if Y+100 is traveled then create next object above which will have a different height, say 250px, so how to automatically alter the condition?
B
4
Posts: 12
Reputation: 226

Post » Thu Jul 02, 2015 1:52 pm

lennaert wrote:If its a scrolling background you want to make, there are quite few examples around.


Anyway,

spawn object on y - Object.Height

System, compare 2 values: object.bullet.distance traveled > WindowHeight + Object.Height
action spawn another on y - Object.Height
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,562


Return to How do I....?

Who is online

Users browsing this forum: Unconnected and 23 guests