![]() |
Snake? Array questions and more...
1 Attachment(s)
Alright, I had the sudden urge to go make snake...Don't ask...
Now i feel totally lost...I have a basic script down that changes directions and all that, but I need help with altering the array so that 1 of them is a turning piece... Ex: you change dir from 3 to 0, the spot that the head is on is now a turning piece and the head is now facing 0. When I tried to alter the array to turn, it moved the whole body up... I am not a math techie...So this is a bit hard for me :-/ Script: NPC Code: I'll post the images in the next 2 posts (and this one) |
1 Attachment(s)
The grid (*curses 30 sec timer*)
|
1 Attachment(s)
And finally, the head (and don't worry about the images...i'll have multi-dir ones soon...These are just temporary)
|
=D
lol, i've already got one made, just have to fix it up a bit so i can have fruit and stuff it was hard to make the bord corners, but i finally got it |
sorry kai for the double post
and from your script, i doubt you'll figure it out =D lol |
Quote:
|
You don't really need math to make it, just make one array which stores the position of the current body parts, make it the size of the maximum number of body parts, and then make a variable which keeps track of which part of the array needs to change.
|
Quote:
lol, it seems it would be that easy write?? well if you use corners then you have a problem... =D |
| All times are GMT +2. The time now is 08:02 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.