Multiple imagepoint

0 favourites
  • 2 posts
From the Asset Store
Be quick and choose the right answer for the shown equation.
  • Hi guys ,

    First i'm noob, i've began with cc2 for 1 week. I really wanna shoot one bullet from different random place on left button in mouse.

    Like for first click the bullet come from left and for the second it come from right, that's look so easy.

    I created a event mousse

    "on left button clicked" with action on my background where i set 4 different imagepoint.

    Then "spawn "bullet" on layer 8 int(random(0,balls.Bullet.AngleOfMotion))

    Then obvusly "set angletoward(Mouse.X,Mouse.Y)

    Anyone have an idea about that ? ^^

    Thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You should post your capx.

    On bullet spawn though, you should have an "imagepoint" field in which you can use int(random(0,3)) (since you have 4 imagepoints, it will pick one of the four imagepoints).

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