What have I done wrong? (360 degree shooting)
Since you can't edit your initial post subject after 6 hours, I decided to create a new thread instead. Uhm. Sorry for spamming. Feel free to tell me off, aight? =)
This is what I wrote, anyway:
Okay.
I tried to copy the example found here:
http://clickteam.com/center/showflat.php/Cat/0/Number/7252/an/0/page/14#Post7252
Can someone PLEASE tell me what I'm missing here, it feels like I've done everything right. I'm about to go crazy! =)
My attempt: http://www.mysharefile.com/v/4821192/gneh.mfa.html
And uhm, while you're at it, can you explain to me how the start loop Speed("bullet") times-thing works. It makes no sense to me. What does its speed have to do with anything? =)
Also. The angle calculation bit ALMOST makes sense to me, but not quite. How do we know where to start counting degrees anyway? Gneh.
You have been VERY helpful so far. I hope someone wants to help me on these last details. =)
/gum
Re: What have I done wrong? (360 degree shooting)
I spent a bunch of time with the two different MFAs and I couldn't figure it out. I scrapped a bunch of the extraneous stuff from the shoot shoot! example and made it look nearly identical to yours, but for some reason it worked and yours didn't. The best I can do is answer this one:
[]The angle calculation bit ALMOST makes sense to me, but not quite. How do we know where to start counting degrees anyway?[/]
Trig class, man. That's all. When you do Trig this just makes it easier to do any math or visualizations. Imagine having to deal with a triangle whose first line we dealt with was always vertical <img src="/center/images/graemlins/frown.gif" alt="" />
Re: What have I done wrong? (360 degree shooting)
Tigerworks wrote a good tutorial on trig in the knowledge base here:
http://www.clickteam.info/kb/start/i...?showtopic=263
Re: What have I done wrong? (360 degree shooting)
Thanks a lot for trying!
I figured out what I did wrong now. It's very stupid =)
I mistook the bullets variable value "speed" for its actual speed value. So instead of setting the variable value "speed" to 10, I set the speed to 10 under the movement menu.
Gah. The code looked exactly the same <img src="/center/images/graemlins/laugh.gif" alt="" />
Thanks again for trying!
Re: What have I done wrong? (360 degree shooting)
Ah. Well done. I kept looking at your code thinking, "man, this should work." I guess that's what I get :-p.