Shoot always to the same side

For questions about using Classic.

Post » Sat Jul 30, 2011 9:14 pm

Ppl, I started this topic because I dont find the answer in the wiki ( almost everything is offine there) and dont find here in the forum either.

So, Iam doing an Contra style game, but I have problems with the direction the bullets go.

They always go to right corner of the screen.

So, If someone can help me I apreciate.

I need to make the robot shoot in all 8 directions.

Thx for your time.
B
2
G
1
Posts: 6
Reputation: 512

Post » Sat Jul 30, 2011 10:07 pm

First of all, nice avatar. Serj Tankian and System of a down are fascinating

To your problem:
Set the angle of your bullet sprites/instances to where they should head to when creating/spawning them. Preferably just to the same angle than your player sprite.

->Spawn bullet
->bullet: Set angle to player.angle
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Sun Jul 31, 2011 6:59 am

If you're looking for tutorials, you might check the tutorial section of this forum and look for C2's tutorial.
In the whole, C2 and CC are quite similar, so what you learn for one does the trick for the other.

There will be some little differences and subtilties, but you can safely go for the beginners' guide to Construct 2 and learn from what's there.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Sun Jul 31, 2011 9:01 pm

[QUOTE=tulamide] First of all, nice avatar. Serj Tankian and System of a down are fascinating

To your problem:
Set the angle of your bullet sprites/instances to where they should head to when creating/spawning them. Preferably just to the same angle than your player sprite.

->Spawn bullet
->bullet: Set angle to player.angle
[/QUOTE]

You are my hero, this actually works!!

Now I must solve the problem of shot up/down when stopped/walking/jumping.

And yeah, Serj is the man, and this pic of him rememberme the troll face from 4chan

Thx for the help dude.ALSPEHEIR2011-07-31 21:01:46
B
2
G
1
Posts: 6
Reputation: 512


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests