Search found 14 matches

by Marcus Aseth
Wed Apr 19, 2017 11:24 am
Forum: General
Topic: My tanks goes haywire, halp :S
Replies: 3
Views: 700

Re: My tanks goes haywire, halp :S

I see, I'll look into that then.
Thanks! :)
by Marcus Aseth
Wed Apr 19, 2017 9:39 am
Forum: General
Topic: My tanks goes haywire, halp :S
Replies: 3
Views: 700

Re: My tanks goes haywire, halp :S

Well, I guess that writing this topic somehow helped me to think, I came up with this (bad)solution inside that function: --add rotation local step = 0 --- -[[ for i = 1, #shape - 1, 2 do --check x,y pairs for the 4 points of the rectangle (8 total values) --distance from current point to pivot loca...
by Marcus Aseth
Wed Apr 19, 2017 9:15 am
Forum: General
Topic: My tanks goes haywire, halp :S
Replies: 3
Views: 700

My tanks goes haywire, halp :S

So I have this tank that drives around just fine using "w,a,s,d", but as soon I try to turn,everything go insane... xD I am staring at the code for 3 hours or more, and I can't figure out a fix :cry: Need help :\ I have the piece of the code properly set up with console print, so I would really appr...
by Marcus Aseth
Mon Apr 17, 2017 5:58 am
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1628
Views: 308488

Re: What's everyone working on? (tigsource inspired)

My first noob attempt at gravity, also a complete waste of your time xD
TheAmazingCubeOfJumpingProjection.love
(6.71 KiB) Downloaded 71 times
Goal of the game: jump so fast out of the screen you're never coming back
by Marcus Aseth
Mon Apr 17, 2017 4:25 am
Forum: General
Topic: Help me displaying my vector pls x_x
Replies: 5
Views: 1098

Re: Help me displaying my vector pls x_x

Thanks for the explanation s-ol, I think that another reason I was a bit confused about it was that (unless I did something horribly wrong) the circle seems rotated 90° counter-clockwise compared to the image of it I see on google, meaning pi/2 is on the left :? Edit: maybe is that multiplying by -0...
by Marcus Aseth
Sat Apr 15, 2017 11:09 pm
Forum: General
Topic: Help me displaying my vector pls x_x
Replies: 5
Views: 1098

Re: Help me displaying my vector pls x_x

here it is, works beatifully, thanks again :3 (though I still don't really like working with radians, I guess I need to understand them better in order to like them) Breaker.love now my code looks like local function showDirection(entity, lineLenght) --find center pivot local lineStartX = entity.x +...
by Marcus Aseth
Sat Apr 15, 2017 10:49 pm
Forum: General
Topic: Help me displaying my vector pls x_x
Replies: 5
Views: 1098

Re: Help me displaying my vector pls x_x

So atan2 is the answer, I had though of trying that since in the lua documentation about it it says " but uses the signs of both parameters to find the quadrant of the result. (It also handles correctly the case of x being zero.)" Though I was trying to avoid it since I get confused when handling ra...
by Marcus Aseth
Sat Apr 15, 2017 9:41 pm
Forum: General
Topic: Help me displaying my vector pls x_x
Replies: 5
Views: 1098

Help me displaying my vector pls x_x

Code and image below. Basically I'm trying to diplay an arrow (pointing in the direction the ball is traveling) at the end of the yellow movement vector, I'm almost there but as you can see, one of the 2 "pointy-lines" of the arrow is pointing 270° instead of 90°. If I negate the Y for that "pointy-...
by Marcus Aseth
Fri Apr 14, 2017 1:22 am
Forum: Games and Creations
Topic: Simple math practice
Replies: 3
Views: 1067

Re: Simple math practice

I was trying to add a dashed line and I got this (img below) This is the code (code below) There is any easy way for me to add a moving animation to the dashes in that code? Like if they are flowing from one point to the next :crazy: (the points passed to this function are ordered by index, and when...
by Marcus Aseth
Thu Apr 13, 2017 5:10 pm
Forum: Games and Creations
Topic: Simple math practice
Replies: 3
Views: 1067

Simple math practice

Since I suck at math I thought I could make myself a tool to help me visualize it and see relations between numbers, practice some very useful math stuff needed for game development and such. So I started today trying to visualize the distance formula x^2 + y^2 = c^2 Program below, feel free to try ...