r69 Auto - Mirror and increase speed in collision

Get help using Construct 2

Post » Thu Nov 24, 2011 10:45 am

Hello,

quick app
I just update r68 to r69, but i got a problem with the enemy movement and the player movement, i solved the player movements by changing the angles (0,180) to (mirror, not mirror)

my problem is that i can't fix the enemy movement what should i change to fix it?

The 2nd problem is the speed direction of player when there is collision between him and the enemy, in both cases if the collision happened when the player was in angle 0 or in angle 180, the player x axis will be on the left direction. I want the player to go far from the enemy in the opposite direction.

Thanks in advance.

Minamina2011-11-24 13:13:38
B
303
S
6
G
5
Posts: 163
Reputation: 12,152

Post » Sat Nov 26, 2011 12:27 pm

No one can help?
B
303
S
6
G
5
Posts: 163
Reputation: 12,152

Post » Sat Nov 26, 2011 12:48 pm

Pretty neat animation you have there (I would recommend rendering it at 1:1 pixel size, though, your game will take forever to load with these detailed animations at twice the size or more).

Anyhow - took me a while to get through your events, but here's what's up:


The bullet behaviour wasn't giving it an angle so any angle-based events weren't happening. And then you'd have to check the angle and flip as necessary. Just do the same events as shown in the image and it should be ok.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Sat Nov 26, 2011 1:08 pm

Thanks Somebody,

I really appreciate ur help and ur nice words.

"I would recommend rendering it at 1:1 pixel size, though, your game will take forever to load with these detailed animations at twice the size or more)." I don't know exactly how to do that, I'm still new in using construct any help?!

What about the second problem? can u help me to solve it?

Thanks a gain and wish u a nice day. mina2011-11-26 13:12:36
B
303
S
6
G
5
Posts: 163
Reputation: 12,152

Post » Sun Nov 27, 2011 8:36 am

Any help??
B
303
S
6
G
5
Posts: 163
Reputation: 12,152

Post » Sun Nov 27, 2011 8:50 am

I think auto mirror and auto flip should be still aviable lika a option to chose
B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

Post » Sun Nov 27, 2011 8:54 am

no, it doesn't in this case, i tried it
B
303
S
6
G
5
Posts: 163
Reputation: 12,152

Post » Sun Nov 27, 2011 8:55 am

Thanks everybody, i solved the problem using a private variable to change the direction during the collision.

Thanks again for ur help.
B
303
S
6
G
5
Posts: 163
Reputation: 12,152


Return to How do I....?

Who is online

Users browsing this forum: Callan S, getplay, Kagubro and 25 guests