Search found 24 matches

by MrPickle
Wed Jul 16, 2008 2:53 pm
Forum: Support and Development
Topic: Objects & Arrays
Replies: 5
Views: 2790

Re: Objects & Arrays

I want to have Cube.Squares[1], etc up to 3

I have already wrote the code that fills in x & y, that works fine, but then I added cube to it because I wanted it to hold 3 squares, which will make up an isometric cube. (I wanted to see if I could draw them without using pictures, which I have done.)
by MrPickle
Tue Jul 15, 2008 4:25 pm
Forum: Support and Development
Topic: Objects & Arrays
Replies: 5
Views: 2790

Objects & Arrays

I have this:

Code: Select all

Cube = { Square = { x = {}, y = {}, Length = 30, Height = 10 } }
I want Square to be an single dimension array, how do I do this?

I tried just assigning stuff to Cube.Square[1].x[1] but I get errors. Do I have to do something special because Square has stuff inside it?
by MrPickle
Mon Jul 14, 2008 3:02 pm
Forum: General
Topic: Experience
Replies: 25
Views: 11814

Re: Experience

Merkoth wrote:I'm 22, and I'm currently learning TorqueScript, lawl.
I can always help you if you need some help.
by MrPickle
Sun Jul 13, 2008 3:25 am
Forum: Games and Creations
Topic: Pong
Replies: 6
Views: 1645

Re: Pong

Press m and it will send you to main menu. Or at You're Winner/You Lose click

I got all the sounds of sites so I just assumed it was ok to use

It randomly decides a direction, up 45, straight across or down 45.

The correct name for the "Player Boards" is paddle

Also, Have a cookie.
by MrPickle
Sat Jul 12, 2008 4:24 pm
Forum: Games and Creations
Topic: Pong
Replies: 6
Views: 1645

Pong

Ok, Well I've been making this to teach myself Lua and the basic of Love and I think it has turned out pretty well. It's only a basic game of pong nothing special :P Could you give me feedback, suggestions and bugs please so I can do more to it Thanks to Rude for helping me with the menu. There's a ...
by MrPickle
Sat Jul 12, 2008 12:13 pm
Forum: Support and Development
Topic: Checking whether text is under mouse
Replies: 5
Views: 3268

Re: Checking whether text is under mouse

I see! Thanks.
by MrPickle
Sat Jul 12, 2008 12:32 am
Forum: Support and Development
Topic: Checking whether text is under mouse
Replies: 5
Views: 3268

Re: Checking whether text is under mouse

Could you please explain to me this bit:

Code: Select all

for name,t in pairs(menu) do
by MrPickle
Fri Jul 11, 2008 10:06 pm
Forum: Support and Development
Topic: Checking whether text is under mouse
Replies: 5
Views: 3268

Checking whether text is under mouse

I am trying to make pong so I can teach myself a few things about Lua, I'm trying to do the menu at the moment. I want the text to change colour when the mouse goes over it, I _sort_ of have it working but it doesn't work very well. I have attached a .love file P.S. I'm sorry for the amount of topic...
by MrPickle
Fri Jul 11, 2008 8:18 pm
Forum: Support and Development
Topic: Lua objects as arguments
Replies: 1
Views: 2036

Re: Lua objects as arguments

Ahh, I've found out how.

You pass them like any other variable!
by MrPickle
Fri Jul 11, 2008 6:42 pm
Forum: Support and Development
Topic: Lua objects as arguments
Replies: 1
Views: 2036

Lua objects as arguments

How do you pass an object from one function into another? Here is my basic object: -- Very basic position object for now Position = {} Position_mt = {} function Position:new(Temp_x, Temp_y) Temp_x = Temp_x or 0 Temp_y = Temp_y or 0 newPosition = { x = Temp_x, y = Temp_y } return setmetatable(newPosi...