How do I set a different angle for each sprite of

Get help using Construct 2

Post » Thu Nov 03, 2011 9:11 am

I have a Cannon that shoots Balls. The one on the floor goes up, but the ones on the wall shoots in a different direction as well the one on the top.

Theres a way of doing it without cloning the sprites?

I also tried to clone them I and couldnt get the trick done.

Arghhhh, newbie suffers lol

Heres the Capx

http://dl.dropbox.com/u/1056957/cannon%20firing.capx

Thanks.
B
18
S
4
G
5
Posts: 149
Reputation: 4,498

Post » Thu Nov 03, 2011 9:26 am

You set your sprites in a wrong direction. You are not allowed to have your sprites facing upwarts, they have to face to the right.

CAPX

I am sorry that I am so bad in explaining it .. just check the capx and hopefully you will know what I mean =)
B
17
S
4
G
4
Posts: 94
Reputation: 3,058

Post » Thu Nov 03, 2011 9:36 am

I'm about to jump out of the window. Because I did exactly like the Capx you returned and the result is not the same...

arghhhh

will do all over again, just to check.


many thanks :)
B
18
S
4
G
5
Posts: 149
Reputation: 4,498

Post » Thu Nov 03, 2011 9:50 am

ahhh

gotcha now!

the original sprite has to be 'looking' from the left to right before all :)
B
18
S
4
G
5
Posts: 149
Reputation: 4,498

Post » Thu Nov 03, 2011 10:12 am

One more question.

Do you know how to make a Cannon stops shooting, once's outside the layout?
B
18
S
4
G
5
Posts: 149
Reputation: 4,498

Post » Thu Nov 03, 2011 4:41 pm

What do you mean by "the cannon stops shooting" .. should the cannon move?

If so than:

Make an invisible sprite all over your layer and add "(canon) IS OVERLAPPING (invisible sprite)"

Or maybe Conditons -> System -> "IS ON LAYER" or "IS VISIBLE" .. just try something out (I would stick with "IS OVERLAPPING")

Cheers
B
17
S
4
G
4
Posts: 94
Reputation: 3,058

Post » Fri Nov 04, 2011 11:29 am

I did with "Is on-screen" event :)

thanks :)
B
18
S
4
G
5
Posts: 149
Reputation: 4,498


Return to How do I....?

Who is online

Users browsing this forum: flemmig, semaso, Skebab, Virpoja and 11 guests