Do my eyes deceive me? Has amcadam started making videos again? For that I subscribe and take off my hat. On a more serious note, Thanks and welcome back. I always liked your videos man, hope you keep at it and good work.
You can clean up the code in two important ways: firstly, use atan2 instead of atan like this angle# = ATan2(MouseY()-tankY, MouseX()-tankX) with that you can remove the "corrections" section :) secondly, always use cos with x and sin with y ;set shells mx value sh\mx = Cos(angle) ;set shells my value sh\my = Sin(angle) and ;Draw line for tank turret Line tankX,tankY,tankX+20*Cos(angle),tankY+20*Sin(angle) I first learned programming this kind of stuff in blitz, good memories
what if you are using API where in drawing command you have only one place to put number of degree. example: al_draw_rotated_bitmap(*bitmap, pos_x, pos_y, rotplace_x, rotplace_y, DEGREE, flag); ?
thank you so much for making this video... i spent allot of time trying to rap my little brain around the math in this :p
mewetea119 3 months ago
Thank you so much! :)
I'm happy that you are back
pufixas 4 months ago
I see that you use CamStudio for your videos?
Can you make tutorial how to record HD videos with that so if you upload i will get same quality as your videos. And what codecs you use?
I tried CamStudio but never got HD out of it.
jw200 5 months ago
Do my eyes deceive me? Has amcadam started making videos again? For that I subscribe and take off my hat. On a more serious note, Thanks and welcome back. I always liked your videos man, hope you keep at it and good work.
The3Leaf 5 months ago
rck109d 5 months ago
@rck109d: thanks for the comments, I've included the changes in the source code download
amcadam26 5 months ago
thank you for uploading
BoeserHacker123 5 months ago
Yaaay!! Back :)
Niker335 5 months ago
Wow you are back - ACE!!
KillerClunge 5 months ago
what if you are using API where in drawing command you have only one place to put number of degree. example: al_draw_rotated_bitmap(*bitmap, pos_x, pos_y, rotplace_x, rotplace_y, DEGREE, flag); ?
MarkoLaizc 5 months ago
@MarkoLaizc which API do you mean? degree probab ly just wants a figure between 0 and 360. But not knowing which API this is I'm not sure
amcadam26 5 months ago
This has been flagged as spam show
Its been forever!!! Its a shame i no longer have this program, youve helped me so much! im now onto C++ thanks to you
GumbieIs1337 5 months ago
Comment removed
GumbieIs1337 5 months ago
Ya a new video! and i think im first right?
anidude98 5 months ago
@anidude98 Yeah, you're the first, congrats!
amcadam26 5 months ago
@amcadam26 Hey do you ever plan on doing some blitz3d?
anidude98 5 months ago
@amcadam26 Sorry CONTINUING blitz3d
anidude98 5 months ago