How do I make a tile-based walk?

Just started using Construct 2? Post your questions here

Post » Tue Dec 08, 2015 12:00 am

Edited
Last edited by SigmundF on Sat Dec 12, 2015 10:04 pm, edited 2 times in total.
B
8
Posts: 11
Reputation: 411

Post » Tue Dec 08, 2015 1:34 am

I updated the links that I couldn't post before
B
8
Posts: 11
Reputation: 411

Post » Tue Dec 08, 2015 3:15 pm

Something like this?

Smooth grid movement
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Dec 09, 2015 1:01 am

Message: SigmundF can only post plain text URLS until they have 500 rep. 2 URLS modified. Why?
LittleStain wrote:Something like this?

https://dl.dropboxusercontent.com/u/485 ... t%201.capx Smooth grid movement


Exactly like that, i used this one: https://app.box.com/s/phtucc93j5lqojiu33za but i have a problem, it also happens in yours..

I don't understand why they put this: Image instead of setting the wall and the player as solid objects, that's what i did in my previos project and woked fine; But in this project that you give me I do the same thing and the collisions dont work :x. There was even a function in that project that said "Collisions disabled" but i erased it and still doesn't work. Can you help me?
B
8
Posts: 11
Reputation: 411

Post » Wed Dec 09, 2015 1:23 am

I'm sorry, but I'm not sure what the problem is..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Dec 09, 2015 2:37 am

LittleStain wrote:I'm sorry, but I'm not sure what the problem is..


The game i did from scratch that didn't have tile-based walk didn't have any problem with the collisions. So i wanted to add to it the tile-based walk but didn't know how, until i found a project and tried to extract the code of it but i couldn't do it, it was all full of bugs...

So i decided to start making the game again -from the project i downloaded that already had tile-based walk- and it was all fine and good with the walk-- but the collision system of that project is a "if player hits x color, then stop moving"(like i showed you on that picture) instead i want ("if player hits anything, then stop moving" )>> which worked fine on the previous project i had. I just put solid behaviour in the objects and works like a charm>> but that doesn't work on the tile-based games.

For some reason all the tile-based projects i downloaded from here have that system of "if x is overlapping wall or touching x color then stop moving". Why can't they do it normally and put -solid behaviour- in all the objects you wanna get a beautiful collision? That's what i did in my previos project and worked fine. Maybe there's something im missing and the tile-based projects have a hidden function somewhere.. i don't know.

Tl;dr : It's like tile-based projects are haunted and you cant make the collisions work :evil:
B
8
Posts: 11
Reputation: 411

Post » Wed Dec 09, 2015 2:46 am

Well tile based games have tile based collisions...
Sounds perfectly logical to me..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Dec 09, 2015 3:00 am

Message: SigmundF can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
LittleStain wrote:Well tile based games have tile based collisions...
Sounds perfectly logical to me..


Here's a video: www.mediafire.com/watch/zk7qwu48aixgwab/capture-2.avi

both the red square and the rock have solid behaviour but they don't collision. Why is that?
B
8
Posts: 11
Reputation: 411

Post » Wed Dec 09, 2015 10:57 am

Because the examples above don't work with solid behaviour..
If you replace "player is overlapping wall" with "player is overlapping rock" in this example

Image

It should work as expected.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Dec 11, 2015 11:52 pm

LittleStain wrote:Because the examples above don't work with solid behaviour..
If you replace "player is overlapping wall" with "player is overlapping rock" in this example

Image

It should work as expected.


Thank you, it works but only on the rock... I placed more objects, did the same thing and nothing; they don't collide. I tried to put the rock on a container with the other solid objects but that also doesn't work.

Im doing this:

Image

And it doesn't collide anywhere :|
B
8
Posts: 11
Reputation: 411

Next

Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest