Animation with gamemaker?

Neo-Axis, Torque, 3D GameStudio, DarkBasic, Blitz3d, ect...
User avatar
Jesusfreak
Posts: 231
Joined: Mon Jun 08, 2009 1:43 pm

Animation with gamemaker?

Post by Jesusfreak »

Should be a pretty simple question. How do I make animations on gamemaker, ie, a walking animation? Do I just have it change sprite and then change back?
Also, how do I make an AI that changes directions randomly? I don't seem to be very good at doing randomizations with multiple outcomes for some reason...
Image
_-= Official Noob Label -=_
For those with self esteem like mine =).
towcar
Posts: 316
Joined: Wed May 20, 2009 2:16 pm

Re: Animation with gamemaker?

Post by towcar »

The Sprite Animation:
You have a normal Sprite just standing there..
When you Press -> Arrow it should move right
So you have it change to the sprite with walking animation. Which can be put in the the object part of the editor

So in the Sprite section in the editor you make ex: Player Walking
With playerwalking you can set up your sprite walking by making multiple frames.



I never did get that far into gamemaker to answer the second one, maybe do something with path finding?
Image
User avatar
Jesusfreak
Posts: 231
Joined: Mon Jun 08, 2009 1:43 pm

Re: Animation with gamemaker?

Post by Jesusfreak »

Ok, thanks, I guess that'll work...

New problem: I can't draw :? . Gah... I can draw simple symmetrical figures like the jet thingy, but how do I draw actual characters?
Image
_-= Official Noob Label -=_
For those with self esteem like mine =).
User avatar
Raven67854
Posts: 893
Joined: Thu Apr 23, 2009 12:51 am

Re: Animation with gamemaker?

Post by Raven67854 »

#JesusFreak
I dunno learn? I can't draw at all. But if you use this nifty site called Google. It can most probably teach you how :).
C/C++/C#/Blitzmax/Visual Basic Programmer
Blender/XSI user
"It's not what you use. It's how you use it what you have" -Unknown author
"Sleeping the number one cause of death" -Raven67854
""No matter how much shit life throws at me. I will keep on going just to piss life off." -Raven67854

PC Specs:
AMD Athlon 64x2 5000+ 2.6ghz Black Edition
8 gigs Corsair ram 1066mhz
9800GTX+
2x750gb HD
Vista Home Premium X64
Ubuntu 9.04 X64
User avatar
Jesusfreak
Posts: 231
Joined: Mon Jun 08, 2009 1:43 pm

Re: Animation with gamemaker?

Post by Jesusfreak »

Hmm... is it possible for the game to detect where you have your mouse? Or can it just detect clicks?
Image
_-= Official Noob Label -=_
For those with self esteem like mine =).
User avatar
hallsofvallhalla
Site Admin
Posts: 12031
Joined: Wed Apr 22, 2009 11:29 pm

Re: Animation with gamemaker?

Post by hallsofvallhalla »

i am sure it has Mouse_x and a mouse_y and a mouse_down fuctions
User avatar
Jesusfreak
Posts: 231
Joined: Mon Jun 08, 2009 1:43 pm

Re: Animation with gamemaker?

Post by Jesusfreak »

So I'll have to get into the source code to do things like that? About time I started using actual code, I guess.

How do I actually start coding? Is there a way I can enable it? Or do I just use the action to insert code whenever I need code?
As for learning the code, it's probably somewhere in the wiki...
Image
_-= Official Noob Label -=_
For those with self esteem like mine =).
User avatar
Noctrine
Posts: 928
Joined: Thu Apr 23, 2009 9:57 pm

Re: Animation with gamemaker?

Post by Noctrine »

Google? I mean seriously, we enjoy helping you but holding your hand throughout the entire thing isn't fun. Its what n00b labels are made for. (And not fake ones like Kyr, but real ones)
Jesse Dorsey
ProjectANI - Lead Developer Person
http://about.me/jessedorsey
User avatar
Raven67854
Posts: 893
Joined: Thu Apr 23, 2009 12:51 am

Re: Animation with gamemaker?

Post by Raven67854 »

GOOGLE

Now all you gotta do is click the link 8-).
C/C++/C#/Blitzmax/Visual Basic Programmer
Blender/XSI user
"It's not what you use. It's how you use it what you have" -Unknown author
"Sleeping the number one cause of death" -Raven67854
""No matter how much shit life throws at me. I will keep on going just to piss life off." -Raven67854

PC Specs:
AMD Athlon 64x2 5000+ 2.6ghz Black Edition
8 gigs Corsair ram 1066mhz
9800GTX+
2x750gb HD
Vista Home Premium X64
Ubuntu 9.04 X64
User avatar
hallsofvallhalla
Site Admin
Posts: 12031
Joined: Wed Apr 22, 2009 11:29 pm

Re: Animation with gamemaker?

Post by hallsofvallhalla »

yes you can use the action code then enter this in it

Code: Select all

if (sprite_index == *main sprites name standing left*)
{
with (instance_create(x,y,*objects name*))
{
direction = 180;
speed = 8;
}
}
if (sprite_index == *main sprites name standing right*)
{
with (instance_create(x,y,*objects name*))
{
direction = 0;
speed = 8;
}
}
if (sprite_index == *main sprites name running left*)
{
with (instance_create(x,y,*objects name*))
{
direction = 180;
speed = 8;
}
}
if (sprite_index == *main sprites name running right*)
{
with (instance_create(x,y,*objects name*))
{
direction = 0;
speed = 8;
}
} 
make your sprites 3 animations long and put each frame of walking in each animation frame....
Post Reply

Return to “3d Engines”