How do I Move an imagepoint with respect to angle?

Get help using Construct 2

Post » Mon Dec 15, 2014 1:06 pm

I'm having a trouble with my new game and I would like to get a small help please. :)
First I have a line of size (220x22) pixels. I have two points : the origin where the line will be spawned and imagepoint1 where the spawn will occur.
Image
Image
It worked perfectly for now. The thing is I needed to make lines go up and down. Let's take Up for now. I have set the origin and imagepoint1 of animation Up by Apply To All Animation from the origin and imagepoint of line straight. The angle of the line in Up is 35 so how can I get the points on the line perfectly so it can spawn right? I want the lines to be smooth since they are going to move along each other as one line of combined lines.
Is there any way to get the origin and imagepoint at the right position with respect to the angle or size?
not: The size of the animation Up is (192,144)
Image
Thanks in Advance!
ImageImageImageImageImage
B
56
S
15
G
5
Posts: 852
Reputation: 11,431

Post » Mon Dec 15, 2014 1:15 pm

Is there a reason why you cannot just set angles instead of animation?
B
34
S
9
G
3
Posts: 517
Reputation: 5,226

Post » Mon Dec 15, 2014 2:56 pm

Katala wrote:Is there a reason why you cannot just set angles instead of animation?

Since I'm using the bullet behavior and they should have the same angle to go with the same line I can't. Because If I do, the direction of line of change. if you want what I mean download Circle. I'm making this game based on it.
ImageImageImageImageImage
B
56
S
15
G
5
Posts: 852
Reputation: 11,431

Post » Mon Dec 15, 2014 3:10 pm

how about - current angle -180? that is the opposite direction of your facing.
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
42
S
14
G
12
Posts: 624
Reputation: 9,421


Return to How do I....?

Who is online

Users browsing this forum: unicornspitfire and 62 guests