Search found 19 matches

by gregkwaste
Tue Sep 11, 2012 10:41 pm
Forum: Support and Development
Topic: Questions about platformer game
Replies: 29
Views: 5309

Re: Questions about platformer game

Thanks a lot for all the input, its an absolute relief for me that everything is a table just because i am very comfortable with using them and basicaly it was easy for me to understand everything as tables as well, and to be honest i definetely did not expect that EVERYTHING would be like that in l...
by gregkwaste
Mon Sep 10, 2012 3:31 pm
Forum: Support and Development
Topic: Questions about platformer game
Replies: 29
Views: 5309

Re: Questions about platformer game

In Lua, basically everything is a table. HardonCollider (which I assume you're using) is written in Lua. Tables are really flexible. Didn't know that to be honest ^^. I just read the hardoncollider documentation concerning the shapes module, and thats why i discovered too, its indeed a table... And...
by gregkwaste
Mon Sep 10, 2012 3:18 pm
Forum: Support and Development
Topic: Questions about platformer game
Replies: 29
Views: 5309

Re: Questions about platformer game

print(type(player.box)) afret player.box=collider:etc it prints out table :S:S:S i thought that it would print out shape.. But anyways its working now ^^. Although i didn't fully get what is going on here :S:S:S i assigned a shape type (collider:addRectangle(etc)) in player.box then i assigned play...
by gregkwaste
Mon Sep 10, 2012 2:51 pm
Forum: Support and Development
Topic: Questions about platformer game
Replies: 29
Views: 5309

Re: Questions about platformer game

Nixola wrote:What is it?
player.box=collider:addRectangle(blahblhablha)

In order to assign a player.box.player value, player.box must be a table, and it is not a table... I can't index it this way :/
by gregkwaste
Mon Sep 10, 2012 2:43 pm
Forum: Support and Development
Topic: Questions about platformer game
Replies: 29
Views: 5309

Re: Questions about platformer game

Well there is another problem.... player.box can't be indexed...

When player.box=collider:addRectangle(etctectectect), player.box.player=player can't be assigned because player.box is not a table :/
by gregkwaste
Mon Sep 10, 2012 2:28 pm
Forum: Support and Development
Topic: Questions about platformer game
Replies: 29
Views: 5309

Re: Questions about platformer game

Nixola wrote:That uses a pointer (I think, anyway the table isn't duplicated); player and player.box.player are EXACTLY the same, if you modify one of them the other one gets modified as well

Just great ^^. I'll apply it right away :)
by gregkwaste
Mon Sep 10, 2012 2:23 pm
Forum: Support and Development
Topic: Questions about platformer game
Replies: 29
Views: 5309

Re: Questions about platformer game

is it possible from a table value somehow to get the whole table? Not unless you make a link yourself. If player.box is a table, you can do something like: player.box.player = player Then you can do something like: local player = shape_one.player Thanks for your answer. That is a possible solution ...
by gregkwaste
Mon Sep 10, 2012 1:33 pm
Forum: Support and Development
Topic: Questions about platformer game
Replies: 29
Views: 5309

Re: Questions about platformer game

Ok, some new lua programming questions: is it possible from a table value somehow to get the whole table? the purpose of this is the following: i have a general table with all the players on the scene every index of this table is a table as well with all the individual stats and function that every ...
by gregkwaste
Mon Sep 10, 2012 7:37 am
Forum: Libraries and Tools
Topic: Advanced Tiled Loader - No longer maintained
Replies: 261
Views: 69295

Re: Advanced Tiled Loader - Updated to 0.11.0!

i had a very stupid problem trying to move some objects in an object layer , i just now i concluded that it was not due to faulty code. The way that the code iterates in the object tables follows the exact same way that the user enters the tiles in tiled. That is very annoying because it forces you...
by gregkwaste
Sat Sep 08, 2012 3:01 pm
Forum: Libraries and Tools
Topic: Advanced Tiled Loader - No longer maintained
Replies: 261
Views: 69295

Re: Advanced Tiled Loader - Updated to 0.11.0!

I had pesronally had a hard time keeping up with the old method and that is what i understand for now, i think i'll keep up with the old one in order to get a bit more comfortable with at the moment :P Now something i think i figured out about objects. i had a very stupid problem trying to move some...