Beginner Guide, bullet shooting left?

Get help using Construct 2

Post » Sat Apr 13, 2013 6:36 pm

I completed the guide earlier on and I wanted to recreate it again but without using the guide, I've done everything like it said to and I've gone through it 3 times now and I can't seem to find what I've done wrong but I created a custom sprite for the player and it's identical in shape to the one supplied. My problem is that when I left click to spawn a bullet instead of going forward it goes left...

I did make a mistake of adding an 8-Direction to the bullets but other than that I have remembered everything the guide said to do, does anyone have an idea why this is happening?

I'd just like to have the player facing the mouse but being able to move with 8-Direction.KonkorFour2013-04-13 18:46:30
Posts: 13
Reputation: 555

Post » Sat Apr 13, 2013 7:00 pm

hmmm sound like you might have a logic flaw that is either repeating or cannot excute it right. post capx example or Explain how you are coding would help.
Posts: 58
Reputation: 2,284

Post » Sat Apr 13, 2013 7:14 pm

Well, I have 2 sprites one for my player and one for the enemy. The player has the scroll to, bound to layout and 8-direction behaviours and the enemy has only bullet.

(I have a mouse object in the game)
I created an event like this:
System>Every Tick>
Player set angle toward Mouse.X, Mouse.Y
Enemy set angle toward Player.X, Player.Y

Now this does what I want, the bullets go to where I click and destroy if they go outside and stuff but it's the player/enemies. Instead of them looking with their front they are looking with their left sides. I'm not sure why it's doing this but I guess an easy solution is to just rotate the images I have.
Posts: 13
Reputation: 555

Return to How do I....?

Who is online

Users browsing this forum: Eltondrknss, oosyrag, Swivels, Taweel and 25 guests