Search found 38 matches

by NoAim91
Mon Feb 27, 2017 6:22 pm
Forum: Support and Development
Topic: Jumper Pathfinding node:getX problem
Replies: 7
Views: 4148

Re: Jumper Pathfinding node:getX problem

realy? When I create a new folder with a main.lua and the code above. In the same folder I placed the jumper folder. Than I run the code and get the error.
by NoAim91
Mon Feb 27, 2017 11:43 am
Forum: Support and Development
Topic: Jumper Pathfinding node:getX problem
Replies: 7
Views: 4148

Re: Jumper Pathfinding node:getX problem

I have copy pasted all the stuff, including the map example. I think the map is transposed. https://github.com/Yonaba/Jumper -- Usage Example -- First, set a collision map local map = { {0,1,0,1,0}, {0,1,0,1,0}, {0,1,1,1,0}, {0,0,0,0,0}, } -- Value for walkable tiles local walkable = 0 -- Library se...
by NoAim91
Mon Feb 27, 2017 10:50 am
Forum: Support and Development
Topic: Jumper Pathfinding node:getX problem
Replies: 7
Views: 4148

Jumper Pathfinding node:getX problem

Hallo again,

I try since 3 days to implement a Pathfinding libary and i get frustred now. :-(

I copy/paste the Jumper example and it doesn´t work. The Error is "attempt to call method 'getX' (a nil value)

I don´t know how to get the path information out of the method.

Thanks for help again.
by NoAim91
Thu Feb 23, 2017 12:10 pm
Forum: Support and Development
Topic: table & for loop
Replies: 5
Views: 4916

Re: table & for loop

thank you both :-)
by NoAim91
Thu Feb 23, 2017 11:26 am
Forum: Support and Development
Topic: table & for loop
Replies: 5
Views: 4916

table & for loop

Hi, I have no clue why the following dosn´t work: function createGraph() for i=1, 60 do graph = {} graph = {id= i, x=40*i, y=65} return graph end end createGraph() print(graph[1].x) --> print 40, all fine here print(graph[2].x) --> gives me a error, because nil value :-( but why??? I like to create ...
by NoAim91
Tue Feb 21, 2017 9:36 am
Forum: Support and Development
Topic: Some noob questions
Replies: 6
Views: 3688

Re: Some noob questions

Thank you SUIT looks fine :-)

another question ... when/why I use " : " in lua?
by NoAim91
Mon Feb 20, 2017 8:20 pm
Forum: Support and Development
Topic: Some noob questions
Replies: 6
Views: 3688

Re: Some noob questions

thanks for the reply ... like every time my problem was something other. But I solved it.

But I have a new Question :-)

What GUI should i use? Should i write my own at the very beginning?

edit: is there any good GUI Tutorial für lua (and probebly löve?)
by NoAim91
Mon Feb 20, 2017 10:39 am
Forum: Support and Development
Topic: Some noob questions
Replies: 6
Views: 3688

Some noob questions

Hello, I try since several hours and i don´t get it, so i´m sorry for this simple questions but i can´t figure out how to do it. 1.) I have a function with some if statements, and at the last if statement i like to set a global variable from true to false. I know how to change is in the local, but h...