How do I fix this?

Get help using Construct 2

Post » Thu Jul 09, 2015 9:48 am

Hello everyone,

I am creating a small game and I'm stuck on something. I want my player to move toward my mouse (or touch, in my case). I got this to work, but whenever I stop touching the screen the player goes top left. Also, my player now changes his angle what I also don't like. Can someone take a look at my capx file?

EDIT: Thanks for fixing this guys. I have one other small thing. How do I make the rockets spawn everywhere around the layout, and not just from the right side?
Last edited by Tikhemdaan on Thu Jul 09, 2015 4:06 pm, edited 2 times in total.
B
3
Posts: 6
Reputation: 187

Post » Thu Jul 09, 2015 9:49 am

Ah. Cant post url's yet. Maybe via PM?

EDIT: Also not possible, sadly.

http:// :ugeek: www :ugeek: .dropbox.com/s/vnszhxa2dzskk9k/astronaut.capx?dl=0
B
3
Posts: 6
Reputation: 187


Post » Thu Jul 09, 2015 11:04 am

It's because event 1 - every tick player set angle and move 2 pixels.

If you disable them 2 actions, and add a new Every tick condition with the added condition 'Is In Touch' with those two actions, it should work as you want.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
138
S
31
G
88
Posts: 5,639
Reputation: 61,209

Post » Thu Jul 09, 2015 3:45 pm

Thank you very much guys! Works now. Very helpful community.

EDIT: Thanks for fixing this guys. I have one other small thing. How do I make the rockets spawn everywhere around the layout, and not just from the right side?
B
3
Posts: 6
Reputation: 187


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests