if you want to make more than one line you are gonna have to change your code.
EDIT: and clickedCircles is supposed to be of length 2, not 4. Unless you want a line between all 4 circles or something.
Printable View
if you want to make more than one line you are gonna have to change your code.
EDIT: and clickedCircles is supposed to be of length 2, not 4. Unless you want a line between all 4 circles or something.
Concerning the intesection problem, that's actually not an easy thing to do (I estimate that the majority of users on the forum would not know - I don't myself because I've never encountered the problem).
I've hit difficulties like this before and honestly the best way to solve it is by searching as much as you can about the problem (math forums are the best bet) and experiment with different code until you get it right.
perhaps
"a summary"
of the current questions and or problems to be helped with would be useful as this thread looks to me like its never ending because no one understands the real problem or the questions are asked in a way that its a pain in the ass to help.
I saw line intersection or something like that, if you know how to use google you should at some point get something like this:
http://keith-hair.net/blog/2008/08/0...-lines-in-as3/
That blog is really good! I'm surprized it doesn't recieve lots of comments from readers...
Ok is there another way of doing this or is line intersection the only way. Also how would I create more than 1 line. I will need seperate lines in order to check if the are intersaecting/hitting each other.Quote:
Originally Posted by dVyper
using loops and checking against each other
Know what guys? I see no fu*king reason to keep helping this guy, he might aswell get of his ass and learn this stuff himself.
He dont wants to learn anything, its just 'now gimme a code to do this, gimme a code to do that'
Let's try and avoid plain old flaming. If this thread is bugging you ( Which I think it is a lot of people now ) then ignore it.
Gathanderoth I think the problem is mate you don't actually have the ability to write this game. That's not a criticism, it's just the way it is.
When you're given code you don't really get it, and holding out for some "easier" code that you get and just slot into your game isn't really going to happen.
( This is why it's been suggested you try Pong. That's because it's the generic beginners game in any language, when I tried Director out I spent a day writing Pong in that. It's a simplistic game but covers all the bases of game development.
I know you've said you've written it before in as2, cool, spend a week porting that to as3 then so you can get your head around all the changes 'cause there are a lot ).
If you can manage to copy/paste code from here there and everywhere and get your game working without really getting how it all works, then well done.
The chances of that happening though are quite unlikely.
So your options are to re-read the help that's already been given here and back it up with a lot of googling and spending time breaking it down until you understand it, or put this game on the backburner until you have the ability to actually make it without needing other people to provide the actual guts of the game for you.
And one final thing from me before I ignore this thread too, this forum is here to help people, and I think it does a pretty good job, but writing crap like "I was hoping some one else could post a better code that I could understand" isn't the best way to go.
Squize.
Ok first of all I am not angry with any of you.
ok I can use as3, I can do a lot of things in as3 and I do understand as3 it is just that I dont understand how to code the game.The code that I have been given, the code mr_malee gave me which is what I am using now I understand. The game works at the moment but I just need to make it so the lines cannot be intersecting/crossing over and I have seached the internet and read all the posts in this thread but I am still not sure how to code this part.
The reason why I keep asking for people to give me code is because if someone just explaines it to me I usualy dont understand but if they give me the code then I can understand it because I can then rewrite the code myself in flash and I can play around with the code and see what each part of the code does. If you just explain to me what I am suppost to do then usually I dont get it so it is easier if you post the code so I can see how the code works.
I know some of you are annoyed with me and I am sorry, all I need is this last bit of code to make the lines so they cannot be intersecting/crossing over and I will be able to start my game and I will not need to post/ask for any more code, I hope. The reason why I posted here is so I could get some help and I could learn how to code my game. I know I have recieved lots of help and I have use the help I have been given to make my game it is just that I am so close to getting the game to completly work I just need to figure out this last part.
So if you do not want to help me and you are going to ignore this thead then that's fine I understand. If I do not figure out how to code this last part from someone here then I will continue to research untill I find a way. I am just here to learn and make things in flash that is all.
Sorry for being a pain in the ass :(