Be a Supporter!

Help in basic scripting.

  • 319 Views
  • 4 Replies
New Topic Respond to this Topic
Kembry
Kembry
  • Member since: Dec. 27, 2006
  • Offline.
Forum Stats
Member
Level 27
Artist
Help in basic scripting. 2012-03-02 10:02:34 Reply

Hello, I got a homework, to program simple things, like something with circles and motion.
Maybe someone could give me advice with it. I need to program nonstop moving circles, wich comes in from one side. And if u press on one of them, it turns in other color, like example orange and than keeps moving in 45 grades angle.
here is example. but no a very good one but still u understand that.

http://www.newgrounds.com/dump/item/29d1e41bf49c66b735abb664 62979e49

milchreis
milchreis
  • Member since: Jan. 11, 2008
  • Offline.
Forum Stats
Member
Level 26
Programmer
Response to Help in basic scripting. 2012-03-02 11:19:41 Reply

Nobody will do your homework for you. If you have a certain question ask it. But you didn't provide any code, so I doubt you have even tried writing it yourself.

Kembry
Kembry
  • Member since: Dec. 27, 2006
  • Offline.
Forum Stats
Member
Level 27
Artist
Response to Help in basic scripting. 2012-03-02 14:00:17 Reply

Ofcourse nobody will. Like I said I am no programmer, I am just asking maybe someone could say with what I should start ?

MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to Help in basic scripting. 2012-03-02 14:05:25 Reply

At 4 hours ago, Kembry wrote: Hello, I got a homework, to program simple things, like something with circles and motion.
Maybe someone could give me advice with it. I need to program nonstop moving circles, wich comes in from one side. And if u press on one of them, it turns in other color, like example orange and than keeps moving in 45 grades angle.
here is example. but no a very good one but still u understand that.

http://www.newgrounds.com/dump/item/29d1e41bf49c66b735abb664 62979e49

Look up MouseEvent.CLICK, which runs a function every time you click something. Add that listener to each circle.

Some other helpful things to look up: addEventListener, event.target

SubparTony
SubparTony
  • Member since: Mar. 30, 2010
  • Offline.
Forum Stats
Member
Level 18
Blank Slate
Response to Help in basic scripting. 2012-03-04 10:55:24 Reply

Have you drawn this yourself or made with Actionscript?If it is with Actionscript maybe I can help a little since I know somethings but if you have drawn this...well I can't do much.


Bitte Nazi mods keine bannerino, weil ich ein Nazi Schwein als ihr bin. Danke schön!

BBS Signature