Search found 9 matches
- Mon Feb 14, 2011 5:58 pm
- Forum: Support and Development
- Topic: NPC chasing the player
- Replies: 21
- Views: 20019
Re: NPC chasing the player
Ok, trying a combination of vrld and Taehl's code I've managed to get the 2 enemies to chase the mocky! function love.load() -- Returns the angle between two points function math.getAngle(x1,y1, x2,y2) return math.atan2(x2-x1, y2-y1) end -- Returns the distance between two points function math.dist(...
- Mon Feb 14, 2011 5:33 pm
- Forum: Support and Development
- Topic: NPC chasing the player
- Replies: 21
- Views: 20019
Re: NPC chasing the player
Wow, I really appreciate the help Taehl. Thanks alot, there's alot of useful new stuff in there that I had not thought of. I tried your script but keep getting the following error: Syntax Error: main.lua:19: '}' expected (to close '{' at line 17) near 'x' Which is weird because it looks to me like a...
- Mon Feb 14, 2011 10:17 am
- Forum: Support and Development
- Topic: NPC chasing the player
- Replies: 21
- Views: 20019
Re: NPC chasing the player
Heya guys, I appreciate the help but in all honesty, it's all a bit too complex for me at this stage and I'm not sure how to apply your suggestions to my actual script. I have tried many times but with no luck. I really am at the most very basic of levels. I have this script where I am trying to mak...
- Sat Feb 12, 2011 8:50 am
- Forum: Support and Development
- Topic: Creating multiple selectable characters
- Replies: 19
- Views: 7456
Creating multiple selectable characters
Ok, this is the last of these topics as I really don't want to spam, but it's a key ingredient into what I'm investigating and the concept I'm coming up with. I'm trying to work out how to approach the idea of having multiple selectable characters that I can simply toggle through to be playable. So,...
- Sat Feb 12, 2011 8:47 am
- Forum: Support and Development
- Topic: NPC chasing the player
- Replies: 21
- Views: 20019
Re: NPC chasing the player
Thanks alot guys, I appreciate the help.
- Thu Feb 10, 2011 11:56 am
- Forum: Support and Development
- Topic: NPC chasing the player
- Replies: 21
- Views: 20019
NPC chasing the player
Hello, I don't want to spam the forum with topics but I am in need of assistance. I'm trying to find examples of a script/function that would allow me to have a number of 'enemies' chase the player around a fixed area/room, basically flocking to wherever the player has moved to. I suppose a bit like...
- Wed Feb 09, 2011 11:05 pm
- Forum: Support and Development
- Topic: Resources folder?
- Replies: 9
- Views: 7432
Re: Resources folder?
Thanks for your help, I think I'm now clear on how resources are handled. I'm using Windows, BTW.
- Wed Feb 09, 2011 5:13 pm
- Forum: Support and Development
- Topic: Resources folder?
- Replies: 9
- Views: 7432
Re: Resources folder?
Hi, nevon, thanks alot, that is very helpful!!
- Wed Feb 09, 2011 4:45 pm
- Forum: Support and Development
- Topic: Resources folder?
- Replies: 9
- Views: 7432
Resources folder?
Hello, You will have to forgive my complete ignorance but I am just starting out with LOVE and LUA. I am the very definition of a noob. I'm just playing around with it at the moment and trying to implement that script where you load the image of a hamster, but I am unsure as to where I should be sto...