8 direction rotation against solid issue

Discussion and feedback on Construct 2

Post » Mon May 04, 2015 9:35 pm

Hey everyone, thanks in advance for reading this.

I'm having an issue with 8 direction movement that I'm not sure if can be fixed.

Since I can´t upload a capx file, all there is to it is an object with 8 direction (a triangle helps visualization) and another solid as a wall. (like a topdown view)
If you move and collide frontally with the solid, and then start moving sideways, the 8 direction object stops rotating to its direction, like the face gets stuck on the solid.

Any way to solve this?

Thanks
B
6
S
1
Posts: 26
Reputation: 448

Post » Mon May 04, 2015 9:43 pm

Maybe try using one object for the movement, and another pinned object for the sprite rotation?
FREEDOM: Diegesis - Out Now for Windows! http://freedom.quicksandgames.com
B
22
S
5
G
1
Posts: 83
Reputation: 1,818

Post » Mon May 04, 2015 10:06 pm

Quicksand wrote:Maybe try using one object for the movement, and another pinned object for the sprite rotation?


Hey Quicksand, thanks for the reply.
I'm actually developing a system where an animated sprite is pinned with the 8 direction object, and the sprite changes depending on the other object's rotation... so I get this weird behavior when colliding with a wall... one solution would be make the object bounce back a little from the wall, but I don't understand why it has this behaviour.
B
6
S
1
Posts: 26
Reputation: 448

Post » Mon May 04, 2015 10:16 pm

Could you upload the capx to DropBox or Copy.com?
FREEDOM: Diegesis - Out Now for Windows! http://freedom.quicksandgames.com
B
22
S
5
G
1
Posts: 83
Reputation: 1,818

Post » Mon May 04, 2015 10:23 pm

Here's an exaple file... just bump in the wall and move up and down.... there has to be a way to make the object rotate normally :cry:

https://www.dropbox.com/s/efzldelvzdtcp ... .capx?dl=0
B
6
S
1
Posts: 26
Reputation: 448

Post » Mon May 04, 2015 10:31 pm

I've got one (pretty obvious) solution...
The object wasn't perfectlly square ¬¬

It's not rotating as I want, bu at least this way it looks the right way.
B
6
S
1
Posts: 26
Reputation: 448

Post » Mon May 04, 2015 10:48 pm

Here is my attempt at a fix, is this working how you wanted?

https://copy.com/0ZeQHizXjlbc8JDG
FREEDOM: Diegesis - Out Now for Windows! http://freedom.quicksandgames.com
B
22
S
5
G
1
Posts: 83
Reputation: 1,818

Post » Mon May 04, 2015 10:53 pm

Quicksand wrote:Here is my attempt at a fix, is this working how you wanted?

https://copy.com/0ZeQHizXjlbc8JDG


Yes, that's perfect!
I see what you did, both objects has 8 direction bur only the movement one has colision.
Great stuff, thank you so much
B
6
S
1
Posts: 26
Reputation: 448

Post » Mon May 04, 2015 10:53 pm

MonkeyBalls wrote:
Quicksand wrote:Here is my attempt at a fix, is this working how you wanted?

https://copy.com/0ZeQHizXjlbc8JDG


Yes, that's perfect!
I see what you did, both objects has 8 direction bur only the movement one has colision.
Great stuff, thank you so much


Glad I could help ;)
FREEDOM: Diegesis - Out Now for Windows! http://freedom.quicksandgames.com
B
22
S
5
G
1
Posts: 83
Reputation: 1,818


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 24 guests