I'v come across a weird problem.
I'm still working on my Slug(snake) game, but i'v come to yet another impass.
My slug ofc is growing when it hits a "food" and it copyes the Snakejoint(0) to the next joints.
Is there a way to force it to copy let's say SnakeJoint(1)?
Snake Creation the snake starts with 3 joints and two slime trails. The slime trails we'll ignore for starters.
Code:For i = 0 To 3 Step (1) SlangeLed(i).Left = (120 - 10 * i) SlangeLed(i).Top = 120 Next i
Finding food and growing a joint
Anything else you need from the code let me know.Code:Public Sub Findfood() 'Adds joint after eating a food If SnakeJoint(0).Left = Picturefood.Left And SnakeJoint(0).Top = Picturefood.Top Then Load SnakeJoint(længde) SnakeJoint(længde).Visible = True wmp2.URL = "Sounds\Effects\nom.wav" Call Placefood længde = længde + 1 'Adds points when a food is eaten Point1 = Point1 + 10 point3 = point3 + Point1 ScoreTal.Caption = point3 End If End Sub




Reply With Quote
