Basically i have a square (player) and the level witch is just a table [example]
[0,0,0,0]
[0,0,1,0]
[1,1,1,1]
I want to be able to detect when the play is walking into a one. what is the simplest way to go about doing this?
[solved'How do I go about make table collision
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
[solved'How do I go about make table collision
Last edited by get52 on Thu Dec 05, 2013 10:39 pm, edited 1 time in total.
Only douchebags tell the admins to delete threads once they get they're answer.
Re: How do I go about make table collision
Someone please help me, I hate to be a bumping asshole but, yeah.
Only douchebags tell the admins to delete threads once they get they're answer.
Re: How do I go about make table collision
We need more information to be able to help you. Is your player gridlocked? If you have a .love of your progress so far, Uploading that would really help us help you.
Re: How do I go about make table collision
Theres not very much to show you, its just a square so far that has love.keypress then x = x + 1 and a table.veethree wrote:We need more information to be able to help you. Is your player gridlocked? If you have a .love of your progress so far, Uploading that would really help us help you.
and its not gridlocked
I just wanna know if hardoncollider would be good for this and how i would go about doing that
So I can detect it and tell the player to stop.
Only douchebags tell the admins to delete threads once they get they're answer.
Re: How do I go about make table collision
From the info you've given us...
If (table[x+1] == 1) then
player has hit a 1
end
If (table[x+1] == 1) then
player has hit a 1
end
Re: How do I go about make table collision
Wonderfull, i was gonna start on it but i had no idea, this gives me an idea of what to do. Thanks.MPQC wrote:From the info you've given us...
If (table[x+1] == 1) then
player has hit a 1
end
Only douchebags tell the admins to delete threads once they get they're answer.
Who is online
Users browsing this forum: Ahrefs [Bot], Amazon [Bot], Bing [Bot] and 7 guests