Search found 93 matches

by jasonisop
Mon Jun 17, 2013 2:07 pm
Forum: Support and Development
Topic: Works with one thing but not the other?
Replies: 30
Views: 11898

Re: Works with one thing but not the other?

You should really give this a read, it will help you a ton.
http://www.lua.org/manual/5.1/
by jasonisop
Mon Jun 17, 2013 1:56 pm
Forum: Support and Development
Topic: Works with one thing but not the other?
Replies: 30
Views: 11898

Re: Works with one thing but not the other?

I was just breaking it apart, to try and help you under stand it.
The local current_angle is just that, the angle that is currently going past 360 in you code. The local angle shows what happens after you do the % 360.
by jasonisop
Mon Jun 17, 2013 1:46 pm
Forum: Support and Development
Topic: Works with one thing but not the other?
Replies: 30
Views: 11898

Re: Works with one thing but not the other?

local current_angle 180 local angle = current_angle % 360 angle is 180 local current_angle 359 local angle = current_angle % 360 angle is 359 local current_angle 360 local angle = current_angle % 360 angle is 0 local current_angle 364 local angle = current_angle % 360 angle is 4
by jasonisop
Mon Jun 17, 2013 3:29 am
Forum: Support and Development
Topic: Works with one thing but not the other?
Replies: 30
Views: 11898

Re: Works with one thing but not the other?

I am not trying to be rude but he did give you the answer there. I might not be the greatest at lua, but when i do not know how to do something I search for it, follow tutorials, and read other peoples posts, 99% of the time the answers are there.
by jasonisop
Mon Jun 17, 2013 1:13 am
Forum: Support and Development
Topic: Works with one thing but not the other?
Replies: 30
Views: 11898

Re: Works with one thing but not the other?

RunningGamesStudios wrote:I don't get how I would use that to correct the angle though
Is there a face palm smiley?
by jasonisop
Fri Jun 14, 2013 5:30 pm
Forum: Games and Creations
Topic: Legends of Rathnor [WIP]
Replies: 37
Views: 33808

Re: Legend of Rathnor [WIP]

Ok, camera code is working correctly now!!!. I am also using a proper camera class now, so i should be able to add effects later on such as screen shake, and some lighting effects( example would be at night with a torch).
by jasonisop
Thu Jun 13, 2013 9:32 pm
Forum: Support and Development
Topic: Map collision...?
Replies: 6
Views: 2649

Re: Map collision...?

The love wiki has tons of helpful tutorials.
https://www.love2d.org/wiki/Tutorial:Ef ... _Scrolling
You could also check out https://www.love2d.org/wiki/Advanced_Tiled_Loader thats what im using for my game along with a few other libraries.
by jasonisop
Thu Jun 13, 2013 7:44 pm
Forum: Games and Creations
Topic: Legends of Rathnor [WIP]
Replies: 37
Views: 33808

Re: Legend of Rathnor [WIP]

Hopefully you didnt just download it, Ive been working on a redo of the camera and player class's and the last commit has it all messed up.
by jasonisop
Thu Jun 13, 2013 1:20 am
Forum: Games and Creations
Topic: Legends of Rathnor [WIP]
Replies: 37
Views: 33808

Re: Legend of Rathnor [WIP]

Thanks, hopefully I will continue to have time to work on this. My biggest hurdle is re-doing camera code, im not sure why its working incorrectly. It should be letting the player free move when the camera is at the edge of the map, and then as the player moves and gets to the center it should start...
by jasonisop
Wed Jun 12, 2013 9:09 pm
Forum: Games and Creations
Topic: [wip] Highvoid [v0.003a]
Replies: 13
Views: 8158

Re: [wip] Highvoid [v0.003a]

Very nice game.