how do i make object that comes out of the camera

Get help using Construct 2

Post » Sat May 14, 2016 10:02 pm

Hy :D i am a beginner !
how do i make infinite objects that comes out of the camera to the point x (x=the floor or any point)
like this picture
Image

thank you :)
B
3
Posts: 5
Reputation: 175

Post » Sun May 15, 2016 12:27 am

come out of the camera......? Please elaborate further.
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,469

Post » Sun May 15, 2016 1:14 am

TwinBlazar wrote:come out of the camera......? Please elaborate further.

the object (food) spawn Off Screen and move to the floor :D
B
3
Posts: 5
Reputation: 175

Post » Sun May 15, 2016 1:29 am

Hi Pigcrafter,
you just answered your question by yourself :)

Go ahead and spawn your objects offscreen and let them fall down (i.e. using the bullet behavior)
and compare if they either hit the ground or went past a certain y coordinate.

Simple start could be:
Bullet Behavior
- Angle 90 degrees
- Active on start: true

Every X Seconds:
- Create Object (Food) at (random(0, WindowWidth) on Layer XYZ

Food on collision with ground (or when y value = ground y):
- destroy


If you're fancy, add sine behavior as well.


Hope that helped you somehow :)
B
22
S
7
G
4
Posts: 154
Reputation: 3,709

Post » Sun May 15, 2016 8:16 am

Thank you 5Type ;)
B
3
Posts: 5
Reputation: 175

Post » Sun May 15, 2016 12:56 pm

5Type wrote:Hi Pigcrafter,
you just answered your question by yourself :)

Go ahead and spawn your objects offscreen and let them fall down (i.e. using the bullet behavior)
and compare if they either hit the ground or went past a certain y coordinate.

Simple start could be:
Bullet Behavior
- Angle 90 degrees
- Active on start: true

Every X Seconds:
- Create Object (Food) at (random(0, WindowWidth) on Layer XYZ

Food on collision with ground (or when y value = ground y):
- destroy


If you're fancy, add sine behavior as well.


Hope that helped you somehow :)


5type can i talk to you :)
B
3
Posts: 5
Reputation: 175

Post » Sun May 15, 2016 1:35 pm

Sure feel free to ask anything.

Here is a quick example of what you can try:
https://www.dropbox.com/s/rvwveqyeg9a5y ... .capx?dl=0
B
22
S
7
G
4
Posts: 154
Reputation: 3,709

Post » Sun May 15, 2016 2:09 pm

5Type wrote:Sure feel free to ask anything.

Here is a quick example of what you can try:
https://www.dropbox.com/s/rvwveqyeg9a5y ... .capx?dl=0

thank you men you are the best :D but i can't send Pm :/ can you send me in message your email or other ;)
B
3
Posts: 5
Reputation: 175


Return to How do I....?

Who is online

Users browsing this forum: Christmas and 21 guests