Star Battle

Get help using Construct 2

Post » Tue Feb 07, 2012 10:55 pm

Hey :)

I want to make a game similar to "Star Battle" a StarCraft2 Mod.

What i first want to figure out is the movement.
I'm giving it Bullet Movement and letting the spaceship move towards my Mouse-click.


What i do not know is how i could make the ship turn more realistic.
I don't want it to turn instant - instead it should turn in a circle.

Uhm.. example picture what i mean :)
http://imageshack.us/photo/my-images/840/examplescirra.png


Thx :DSchoening2012-02-07 22:55:33
B
40
S
11
G
4
Posts: 665
Reputation: 8,403

Post » Wed Feb 08, 2012 1:41 am

You can set your Sprite to Rotate towards Mouse.X and Mouse.Y I have used something similar with a WASD setup. Just set your sprite to Rotate to Position, Set the degrees to at least 0.1, and have X = Mouse.X and Y = Mouse.Y. That's really all you need to do aside from setting the bullet speed. Hope that helps!
B
6
S
1
Posts: 37
Reputation: 774

Post » Wed Feb 08, 2012 3:29 am

There's an example in the FAQ that fits your needs.

TheLure's WalkToDemo.capx
B
11
S
3
G
2
Posts: 110
Reputation: 2,410

Post » Wed Feb 08, 2012 9:03 am

thanks you 2 :D

BTW. Wicked picture Khaz :)
B
40
S
11
G
4
Posts: 665
Reputation: 8,403

Post » Wed Feb 08, 2012 2:31 pm

Nice ! Have it working now :) i make it rotate x degree toward position every tick. Never thought it would be so simple :)
B
40
S
11
G
4
Posts: 665
Reputation: 8,403


Return to How do I....?

Who is online

Users browsing this forum: armaldio, plinkie, Yahoo [Bot] and 17 guests