Jondrusek
Jondrusek
Posts

1

Following

3

Followers

3

I have been making games with Game Maker for around 2 years now, and soon I hope to work with C++ and other programming languages to further my skills.

Joined on April 6, 2006, 9:48 PM Visited on June 18, 2008, 8:41 PM

Jondrusek posted on June 30, 2006 at 8:55 PM

I'm Learning Flash!

Well, I just started learning Flash just a couple of days ago, and because of my experience with GML, other programming languages are automatically easy to learn.

Flash is just like GML, except for the fact that it is more organized, the actions are different, and you have to use a lot more math(YAY!). I just learned how to creat instances just today. It sounds easy, but it's a bit trickier than Game Maker. Here's an example:

In GML: <step event>

if mouse_check_button_pressed(mb_left){
instance_create(x,y,object);
}

In Flash, it's something like this:

onClipEvent(enterFrame){
var i;
_root.onMouseDown=function(){
_root.object.duplicateMovieClip("newObject",i);
i++;
}
}

It's something like that, correct me if I'm wrong. Anyways, the movement is fun, you have to have an idea on how sin and cosine work, though. Compare these two:

In GML: <create event>

speed=20;
direction=point_direction(x,y,mouse_x,mouse_y);

In Flash:

onClipEvent(load){
_spd=20;
xdiff=_root._xmouse-_x;
ydiff=_root._ymouse-_y;
_rotation=Math.atan2(ydiff,xdiff)*180/Math.PI+90;
}

onClipEvent(enterFrame){
_x+=_spd*Math.cos((_rotation-90)*Math.PI/180);
_y+=_spd*Math.sin((_rotation-90)*Math.PI/180);
}

Anyways, I found out yesterday how to put Flash games on the internet, so I hosted a website on geocites(I don't like geocities at all, but it's free, so whatever) and it should work just fine. Keep in mind, this is my first Flash game, it actually not much of a game either. Sort of a "test"

http://www.geocities.com/jondrusek777/overhead.swf
It's not much, but it's a start. If anyone here is a Flash user, could you PM me sometime, and we could chat about it? I need to meet some other Flash game makers. =P