This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
dragonxtamer596's profile picture

Lua question need help

Started by dragonxtamer596, 23 October 2012 - 08:50 PM
dragonxtamer596 #1
Posted 23 October 2012 - 10:50 PM
OK, I want to make it where if I collide with an object it will be it, tag basically, and there will be a variable to say who's it at the top right of the screen like in a text box how do I do this?
EDIT- Any resources would be great to.
remiX #2
Posted 24 October 2012 - 12:24 AM
Don't think you can do that.
dragonxtamer596 #3
Posted 24 October 2012 - 12:35 AM
:sadface:
ChunLing #4
Posted 24 October 2012 - 01:06 AM
We may not be clear on what you mean. Are you trying to code a game that would be played on the console screen? So the collision would be between your "avatar" on the console screen and some other element displayed on the screen?

There is a simple "Hurdles" program in Programs that uses basically this kind of mechanic, as well as that one game that comes with core CC, Snake or Worm or whatever. Making it so that your "avatar" didn't enter the space occupied by the other element but rather marking the element as having been collided by the player isn't too difficult. But you might mean something else entirely.
dragonxtamer596 #5
Posted 24 October 2012 - 01:37 AM
Are you trying to code a game that would be played on the console screen?
Yes
So the collision would be between your "avatar" on the console screen and some other element displayed on the screen?
Basically yes but with another avatar(player)
ChunLing #6
Posted 24 October 2012 - 04:02 AM
Oh, so it's multiplayer? That could be fun. Anyway, it should be possible. Just use the collision mechanics of those other games but instead of killing the player or the "food" you just change the value that designates who is "it".
remiX #7
Posted 24 October 2012 - 08:29 AM
Oh I thought you were talking about your actual player in Minecraft ^_^/>/>
ChunLing #8
Posted 24 October 2012 - 08:51 AM
Yeah, it sorta sounded like he was, but I thought that wasn't too likely.
dragonxtamer596 #9
Posted 25 October 2012 - 02:09 AM
Sorry for the confusion.