Feature request: Custom angling and imagepoints

Discussion and feedback on Construct 2

Post » Sun Oct 28, 2012 1:32 am

If by "mother sprite" you mean you're spawning bullets from another sprite, then don't use spawn use create (I've heard that spawn uses the angle of the parent).

I think that's what you're talking about, otherwise you can do "set angle" in bullet behaviour to "no" if you don't want the display and movement angle to be the same.
B
141
S
68
G
17
Posts: 1,769
Reputation: 20,124

Post » Sun Oct 28, 2012 1:32 am

wtf, anyone else seeing my posts before his?alspal2012-10-28 01:33:36
B
141
S
68
G
17
Posts: 1,769
Reputation: 20,124

Post » Sun Oct 28, 2012 1:53 am

When I implement bullet mechanics I find it very frustrating that the bullet angle is determined by the angle of the "mother" sprite.

I miss an imagepoint option to determine in which angle other sprites are spawned.

So for example, if I fire a bullet from imagepoint 1 i want the potential bullets to fly off in a 15 degree angle, independent of the mother sprite.BentOnHell2012-10-28 01:57:55
B
4
Posts: 9
Reputation: 418

Post » Sun Oct 28, 2012 2:29 am

That's really odd, @alspal I do see your posts after his!

In regards to original poster: why not use 'set angle' after the spawn action?
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,644

Post » Sun Oct 28, 2012 10:21 am

Yeah, alspal seems to to the original poster... Weird.

Well, I have experimented with the set angle property and spawning the bullet on a custom coordinate. The problem is that as soon as I set the bullet angle, it affects all other bullets currently on screen making previously fired bullets reverse their direction.
B
4
Posts: 9
Reputation: 418

Post » Sun Oct 28, 2012 10:53 am



Any actions after a created object will only affect that newly created one, so make sure you put the "set angle" after the creation and not before.alspal2012-10-28 10:58:19
B
141
S
68
G
17
Posts: 1,769
Reputation: 20,124

Post » Sun Oct 28, 2012 11:08 am

That did the trick! Much appreciated!
B
4
Posts: 9
Reputation: 418

Post » Sun Oct 28, 2012 1:19 pm

Heh, I think our server changed its clocks at 2am for the end of British Summertime (BST)... causing a weird posting order bug!

Anyway, I don't see a need for additional features here, it seems covered by the 'set angle' action.
Scirra Founder
B
382
S
223
G
86
Posts: 24,002
Reputation: 189,821


Return to Construct 2 General

Who is online

Users browsing this forum: LaurenceBedford, roguecore, Solomon and 5 guests