...create a Worm?

Get help using Construct 2

Post » Thu Jun 20, 2013 8:37 am

Hello Community!

I used search, but i didn't found anything...
(and sorry about my english *g*)

How do i crate a Worm who's growing?
Like THIS or THIS one?

The worm contains the head, the body-parts (grows/adds body-parts) and at the end the tail.
So how can i realize it, that between the head and the tail body-parts will be added, when the worm "eats" something?

Thanks a lot!
B
22
S
6
G
2
Posts: 186
Reputation: 3,634

Post » Thu Jun 20, 2013 9:41 am

The classic name of this game is "Snake".

If you search for this term you can find this topic or this one or even this one or yet again this one.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
296
S
119
G
96
Posts: 7,332
Reputation: 71,306

Post » Thu Jun 20, 2013 2:18 pm

Thanks Kyatric ^
B
20
S
7
G
4
Posts: 322
Reputation: 4,531

Post » Thu Jun 20, 2013 4:22 pm

B
57
S
19
G
10
Posts: 191
Reputation: 9,636

Post » Thu Jun 20, 2013 6:44 pm

Ahhh....
Snake...
Yes...
Thanks!!!

All the time i was searching for Worms and i wonder, that i dont find anything... *hehe*
B
22
S
6
G
2
Posts: 186
Reputation: 3,634

Post » Thu Jun 20, 2013 8:45 pm

I looked at the links, but there's nothing i can use...
I don't mean that snake-movement like "block-by-block/square-by-square"...
I mean an worm-movement like in THIS GAME, just for example (real-time-movement *hehe*)

Ans some examples from your postet links does not work anymore :(

But thanks again for your fast answer and help!
(and sorry again for my english *g*)
B
22
S
6
G
2
Posts: 186
Reputation: 3,634

Post » Thu Jun 20, 2013 9:41 pm

Try to use the "Pin" behavior in rope mode, pinning each body part to the previous and only moving the head.

For the growth logic, the topics I've linked still work, you need to pick the correct instances.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
296
S
119
G
96
Posts: 7,332
Reputation: 71,306

Post » Tue Jun 25, 2013 4:54 pm

Thanks to all and specially to Kyatric for help - but now i have another problem.
Normally the world/playfield have limits (size of the layout), so i created an playfield, that is infinitely!

The Player is always in the center of the screen and seems to move, but acuality the background/opponents/environment moves in opposite direction of Player. So the world seems to be endless!
(for my game it will work so)

But now i can't make a tail like in the examples mentioned.
("pin" with rope-style does not work)

HERE is an test-capx to see, what i mean with endless playfield.
(Control by touching)

Thanks again!
B
22
S
6
G
2
Posts: 186
Reputation: 3,634

Post » Tue Jun 25, 2013 7:03 pm

The endless playfield may be part of the problem with the rope, if the head doesn't actually move, it can't drag the body out behind it.
B
242
S
63
G
33
Posts: 903
Reputation: 40,756

Post » Tue Jun 25, 2013 7:22 pm

I'll be afraid that this is the "problem"...
Is there another way to "simulate" a tail with my movement?

I tried with different ImagePoints, but the animation of the tail is to rigid...
B
22
S
6
G
2
Posts: 186
Reputation: 3,634

Next

Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 23 guests