Animation with gamemaker?
- Jesusfreak
- Posts: 231
- Joined: Mon Jun 08, 2009 1:43 pm
Animation with gamemaker?
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...
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...
_-= Official Noob Label -=_
For those with self esteem like mine =).
Re: Animation with gamemaker?
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?
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?
- Jesusfreak
- Posts: 231
- Joined: Mon Jun 08, 2009 1:43 pm
Re: Animation with gamemaker?
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?
New problem: I can't draw . Gah... I can draw simple symmetrical figures like the jet thingy, but how do I draw actual characters?
_-= Official Noob Label -=_
For those with self esteem like mine =).
- Raven67854
- Posts: 893
- Joined: Thu Apr 23, 2009 12:51 am
Re: Animation with gamemaker?
#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 .
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
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
- Jesusfreak
- Posts: 231
- Joined: Mon Jun 08, 2009 1:43 pm
Re: Animation with gamemaker?
Hmm... is it possible for the game to detect where you have your mouse? Or can it just detect clicks?
_-= Official Noob Label -=_
For those with self esteem like mine =).
- hallsofvallhalla
- Site Admin
- Posts: 12023
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Animation with gamemaker?
i am sure it has Mouse_x and a mouse_y and a mouse_down fuctions
- Jesusfreak
- Posts: 231
- Joined: Mon Jun 08, 2009 1:43 pm
Re: Animation with gamemaker?
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...
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...
_-= Official Noob Label -=_
For those with self esteem like mine =).
Re: Animation with gamemaker?
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)
- Raven67854
- Posts: 893
- Joined: Thu Apr 23, 2009 12:51 am
Re: Animation with gamemaker?
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
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
- hallsofvallhalla
- Site Admin
- Posts: 12023
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Animation with gamemaker?
yes you can use the action code then enter this in it
make your sprites 3 animations long and put each frame of walking in each animation frame....
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;
}
}