AS3 Code Challenge: Orbital

by carl schooff on November 8, 2011 · View Comments

in Challenge

The Challenge

Make a swf that does exactly this:

This movie requires Flash Player 9

  • scale of orbital path continually pulses
  • click to change direction of orbit
  • scale of green orb does not change

Get those brains going…

Video Containing Full Contest Details and Submission Guidelines

additional notes

You can use any method that achieves the desired results. It can combine any amount of AS3, movie clip symbols, motion paths, timeline animation, external libraries, or code you rip from other tutorial sites … just get it done! ;)

Learn more about the awesome Really Green Club GreenSock Membership Prize

I will confirm receipt of all entries via email. Please allow a few hours for this as I do sleep and do other things. The first submission will be confirmed as soon as possible privately. In order to maintain some level of drama I will not publicly confirm/announce the first submission until I see fit. In order to keep things interesting, please refrain from posting comments like “I’m the first to submit” as the order in which you submit comments has no relation to the order in which entries are received.

UPDATE: First Entry Received

Conratulations to Jaaq Jorissen who submitted his entry within the first hour of the contest being announced!  Great Work Jaaq!

Don’t fret folks, still a prize to give away plus your own personal satisfaction for a job well done. Keep sending those submissions.

Very happy with the results so far. The biggest advantage for me is seeing the multitude of ways this problem can be solved. Its been a real hoot. I’ve seen everything from crazy-complicated to suprisingly-simplistic. Its all good. Great work everyone!

 

BONUS!

I’ve gotten a hefty amount of submissions. I know this was easy for some of you. If you want more of a challenge, try to replicate the following:

This movie requires Flash Player 9

Just so you know, there is no 3D going on, just very simple 2D manipulations. By just modifying a few values in my original file I was able to create the above bonus swf. It took just a few seconds… literally. Really all I did was modify the scaleY of the circle to go negative and added a slight rotation to get that “flip around” effect. I also opted to change the scale of the snorkl dude just to add a little depthiness.

So if you were smart and built your file like me, it shouldn’t be a big deal;) Give it a shot. Solution coming next week!

Big News

Have you heard the big news on my upcoming Ultimate TimelineLite Starter Guide? Or grabbed my handy “load multiple swfs and play them sequentially” files? Why not? Check it out here.

Get Going! and Good Luck!

Carl

Past Challenges

Peakcock
Bisector
Ferris Wheel

Post to Twitter Post to Facebook

  • http://twitter.com/MerrickBrewer Merrick Brewer

    Obviously I’ve already finished mine… cough cough….

    Nice challenge Carl, this will get me thinking!!

  • http://www.snorkl.tv/ carl schooff

    somehow I got yours before I even posted the contest. what the heck is going on! ;)

  • http://www.facebook.com/profile.php?id=1488625085 Христо Панайотов

    Submited ;) Easier than it looks

  • Plam4u

    I’ve submitted my as well :) It was fun, because it was easy enough and challenging enough :P

  • Emrah Atılkan

    i submitted mine as well, i hope timing or fastness or colors are not the case.

  • Emrah Atılkan

    and i did not need to use tweenlite.

  • http://www.snorkl.tv/ carl schooff

    Great to hear. thanks for contributing!

  • http://www.snorkl.tv/ carl schooff

    yup. got it! thanks

  • http://www.facebook.com/people/Marius-Posthumus/100001638378294 Marius Posthumus

    I’m trying to do this without anything on stage, everything created with code. But I’m stuck :( probably won’t figure it out. I’m really bad at math.

  • http://www.facebook.com/people/Marius-Posthumus/100001638378294 Marius Posthumus

    Nvm, I think I fixed it! Will probably sent my entry within an hour :D

  • http://www.facebook.com/people/Marius-Posthumus/100001638378294 Marius Posthumus

    submitted :D

  • http://www.snorkl.tv/ carl schooff

    got it! great work. 
    My solution uses no objects on stage and no math. you are going to love it!

  • http://twitter.com/MerrickBrewer Merrick Brewer

    It’s the time difference between the UK and the Americas… technically I’m time travelling ahead of you, and through some weird internet worm hole, I’m able to see things before you’ve even written them…

    I may have made that up….

  • Doug

    There’s a small glitch in your swf. If you click to change the green circle’s direction on the very most right side of the circle it will stop moving completely. It’s a little hard to get the glitch but here’s a screenshot: http://i.imgur.com/ZPbH6.png

  • http://www.snorkl.tv/ carl schooff

    Thanks. Very strange. I’ll let you know if I figure it out.

    -in the meantime don’t click there! ;)

  • http://www.facebook.com/people/Marius-Posthumus/100001638378294 Marius Posthumus

    I was able to reproduce it, very strange indeed :P

  • http://www.facebook.com/profile.php?id=1488625085 Христо Панайотов
  • http://www.facebook.com/people/Marius-Posthumus/100001638378294 Marius Posthumus

    haha very nice :P
    what does that MB counter mean?

  • http://www.snorkl.tv/ carl schooff

    very nice! thanks for sharing.

    c

  • http://www.facebook.com/profile.php?id=1488625085 Христо Панайотов

    This utils shows memory / fps. Also if you click it will output in browser more information. Setup in 1 line of code/easy add buttons. You can download it at http://burnandbass.com/debug/ 

  • http://www.facebook.com/people/Marius-Posthumus/100001638378294 Marius Posthumus

    Thx a lot :)

  • http://www.facebook.com/people/Marius-Posthumus/100001638378294 Marius Posthumus

    I don’t think I’ll be able to recreate the Bonus one with my solution. I did try a few things but didn’t turn out quite the way I wanted it :(

blog comments powered by Disqus

Previous post:

Next post: