Make walls 'smooth'

Get help using Construct 2

Post » Wed Sep 14, 2011 9:51 pm

How would I make my walls let objects 'smoothly' interact with them - i.e. at the moment, whenever my character now makes contact with the wall, it 'sticks' to the wall and has to move directly away from it before it can do anything. I would rather the object 'slide' along the wall.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Wed Sep 14, 2011 10:03 pm

The character at the moment has 8-directional movement behavior and the walls have the solid behavior.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Thu Sep 15, 2011 12:07 am

Do you have a small project file to post so we can see it in action? There are any number of reasons that a wall would do that.

I know I had a problem with sticking on my platform game until I completely flattened the ground (IE made sure each ground part was exactly the same Y coordinate and all my walls were EXACTLY the same X coordinate) but something tells me that my idea may be a nonissue for you, particularly if the wall is one sprite.
B
3
S
2
G
1
Posts: 7
Reputation: 789

Post » Thu Sep 15, 2011 7:15 am

I think I know the problem. The player rotates so the corner of the collision square is sticking into the walls... The wall is at the moment one simple rectangular sprite.

Any way to fix this?
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Thu Sep 15, 2011 7:19 am

Yes this is certainly the problem, if i turn off the rotation it works like a charm.

So, I need a fix to the corner of the collision box sticking into the wall.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Thu Sep 15, 2011 3:24 pm

I just had a quick go and the 8 direction doesn't stick to walls here.

Can you post a .capx showing what you mean?
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Thu Sep 15, 2011 10:33 pm

Here is a quick example... drive it into the walls using the arrow keys and you see some very irritating stickiness. This also looks worse in a game where my vehicle is not square at all.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Thu Sep 15, 2011 10:33 pm

http://www.mediafire.com/?18ajj9qnj11vvjk
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Thu Sep 15, 2011 10:41 pm

Please, use DropBox (quicker, simpler, if you want to upload exported projects you don't need to zip them).

Also to make a capx, in C2 look into the menu - save as single file.
An exported project, as you provided, can't allow to check effectively if there's a bug or a logic error.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Thu Sep 15, 2011 10:52 pm

Oh shoot... sorry mate, of course I should have made a .capx but I forgot.
Anyway, it's certainly not a logic error - there is only one line on the event sheet, and that is for the rotation. The rest is for the 8 direction behaviour.

Also, I didn't have the time to set up a dropbox account, as I'm getting ready for school.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Next

Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go and 25 guests