create object

This forum is currently in read-only mode.
From the Asset Store
Fully commented source code/event sheet & sprites to create a space shooter game
  • hi everyone.

    I know that someone could find this easy but I have tried everything without success.

    I want to create two balls, one on the left and on the right. So far so ok, the original ball have the ball behavior. and the problem is when the original ball change his angle, and the other balls are created in the oppositive direction. so the question is �how I can get angle from the original ball and set it in the others balls?

    so I hope you can halp me with this.

    <img src="http://img703.imageshack.us/img703/3035/prtscrcapturet.jpg" border="0" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just mark the first one(I used the "parent" variable for this), and make a global variable wich stores the original ball's angle.

    + System: Start of layout

    -> System: Create object Ball on layer 1 at (50, 400)

    + System: For each Ball

    + Ball: Value 'parent' Equal to 1

    -> System: Set global variable 'angle' to Ball.Angle

    + System: For each Ball

    + Ball: Value 'parent' Not equal to 1

    -> Ball: Set angle of motion to global('angle')

  • I tried what you say, but it doesn't works like I want.

    this is what I traying to do http://www.box.com/s/0u7d3hjoy5mg5ybhlh2t

    I hope you can help me

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