Jump to content

MTA SnakeGame Help


Recommended Posts

Posted

LOL! You are amazing Jacob! ;-)

I love how you guys struggle to make my project work.. But hey, I am learning something here.. ;)

Have a feeling this topic will be a lot longer than it already is :o

  • Replies 58
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

Haha.. Dont worry ;-)

I'm gonna be working more with the script for a few hours before I go to bed. I will post it here when I finish, if you guys still are keen on helping me ;-)

Posted

Hmm.. I was just thinking. To make the tail work as it should, I need to set each new ped to follow the ped created before it.

But doesnt that just take us straight back to the table?

I mean, at this point there is really no control of the tail, other than that its attached to the player. But it doesnt respond very well to the mouse yet. I have been thinking and drawing on a piece of paper how I would be able to make it, but I always end up at the table :P

Hope you understand :-s

Posted

ok,

1. don't double post use the EDIT botton instead

2. ye i understand, it's really hard to do what you want but yes in order to control all the peds you need a table but... you dont need ped[number] = createPed you can do this

local peds = {} 
table.insert(peds, lastPed) 
-- later if needed 
table.remove(peds, ped) 

so we don't get back to the messy stuff

Business System viewtopic.php?f=108&t=35797

Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726

SQLite Tutorial viewtopic.php?f=148&t=38203

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...