Archive for February 3rd, 2009

Good Books for Learning Flash

There was a discussion on Direct-L last week about books that are good when trying to learn Flash (and in particular AS3). Several nice ones were mentioned.

I picked up ActionScript 3.0 Game Programming University the other day and am starting to work my way through it. I feel that learning a new language by programming simple games is a good idea, since you always have a true goal in mind. Even better, a bit of physics gets thrown in so that aliens can behave in a realistic fashion when moving through varying gravitational fields 🙂

The book was written by Gary Rosenzweig, who many might know from years on various Director lists. Be sure to drop by the site that goes along with book called FlashGameU.

ActionScript 3 Game Programming U Book Cover

4 comments February 3rd, 2009

Ceiling and Floor in Lingo

People occasionally have questions when trying to find a ceiling or floor function in the Lingo library so I figured I’d post it here for future googlers.

Lingo didn’t include these two math functions, but you can write your own functions and keep them in your personal library of goodies.

on floor aFloat
 return integer(aFloat) - (aFloat < integer(aFloat))
end

on ceil aFloat
 return integer(aFloat) + (aFloat > integer(aFloat))
end

If you are working with Javascript these functions are built in:

Math.ceil(aFloat);
Math.floor(aFloat);

2 comments February 3rd, 2009


Director Sites

Calendar

February 2009
M T W T F S S
« Jan   Mar »
 1
2345678
9101112131415
16171819202122
232425262728  

Archives

Recent Posts

Recent Comments