How can i make the last tile the player was in solid?

Get help using Construct 2

Post » Thu May 26, 2016 3:17 am

Hi guys.

We're making a tile-filling game and the only thing we're missing is making the blocks the player has already touched non-walkable.

capx -> https://www.dropbox.com/s/186y1kmx7c3le ... .capx?dl=0


thanks :D
B
9
S
2
G
1
Posts: 6
Reputation: 1,099

Post » Thu May 26, 2016 6:56 am

up (because the spam bots)
B
9
S
2
G
1
Posts: 6
Reputation: 1,099

Post » Thu May 26, 2016 8:25 am

if you will spread your purple 'posicion' blocks out 64 from the player instead of just 32, so they only overlap one block at a time,

you can just add this to the "MoveHero" function:
posicion is overlapping cubitos AND cubitos animation frame = 1 >> set canmove to 0
B
86
S
43
G
71
Posts: 601
Reputation: 43,619

Post » Thu May 26, 2016 11:18 am

In fact. If i add this to your code, it stays buggy. Touch aint working, by instance. I suppose diagonals are not allowed.
Get the bugs out would take me to much time.

So i started from scratch.

https://drive.google.com/open?id=0B1SSu ... 1lDUmVOUzA

Tip: use instances to keep the code (and codingi time) as tight as possible.
B
33
S
18
G
27
Posts: 2,451
Reputation: 20,366

Post » Thu May 26, 2016 2:41 pm

spacedoubt wrote:if you will spread your purple 'posicion' blocks out 64 from the player instead of just 32, so they only overlap one block at a time,

you can just add this to the "MoveHero" function:
posicion is overlapping cubitos AND cubitos animation frame = 1 >> set canmove to 0



99Instances2Go wrote:In fact. If i add this to your code, it stays buggy. Touch aint working, by instance. I suppose diagonals are not allowed.
Get the bugs out would take me to much time.

So i started from scratch.

https://drive.google.com/open?id=0B1SSu ... 1lDUmVOUzA

Tip: use instances to keep the code (and codingi time) as tight as possible.



Thanks you guys! =D
B
9
S
2
G
1
Posts: 6
Reputation: 1,099


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], newt, Yahoo [Bot] and 9 guests