how do i make object that comes out of the camera

  • Hy 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

    thank you

  • come out of the camera......? Please elaborate further.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • come out of the camera......? Please elaborate further.

    the object (food) spawn Off Screen and move to the floor

  • 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

  • Thank you 5Type

  • 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

  • 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

  • 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 <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy"> but i can't send Pm :/ can you send me in message your email or other <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)