Snake

Get help using Construct 2

Post » Sat Nov 01, 2014 11:28 am

I have a problem with my game:
When the player passes a companion red sprite object is created, and when it collides with the blue object destroys it.

But the problem is that sometimes collided with the blue object and not destroys and the other thing is that when you destroy leaves a space between the red sprite companion

Then also lurks beneath the player, I would like it to be outside

https://www.dropbox.com/s/jctgf0sr7h87f ... 0test.capx
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Sat Nov 01, 2014 12:51 pm

Here you go, I've edited your example and this should work for you.

You had a small memory leak in there by continually increasing the size of the player position array. I have also changed the way the data is inserted into the array so that each tail sprite obtains its position data from the position array according to its position number and a time delay that you can edit using a local variable.
You do not have the required permissions to view the files attached to this post.
A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,203
Reputation: 43,828

Post » Sat Nov 01, 2014 2:23 pm

Thank you very much, is what I wanted :D
B
13
S
2
Posts: 297
Reputation: 1,717


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests