Can someone give me ideas for a game im making? It's going to be a platformer.
Offline
I don't have any ideas but here is a scrpt that you can modify thatt is basic platformer:
Offline
I have a different advice than the one given for moving, jumping, shooting and anything else that come up. I'm using this actually myself on one archer game I'm making.
You use one variable. Let's call it "state".
Here is the explanation:
state=0 the character is standing still and doing nothing
state=1 the character is moving left or right
state=2 the character is jumping
state=3,4,5..... the character is attacking, defending or anything else.
While state is 0, you can go to any other state. So, while you are standing still, you can start moving, jumping or anything else.
While state is 1- moving, you can jump.
While state is 2- jumping, you can move right or left.
But while state is not 0, you cannot start doing anything else, with only two exceptions that I mentioned.
Example:
<when green flag clicked>
<forever>
<if><key[ right arrow ]pressed?>
<if><( state<=> 0 )>
<set{ state}to( 1)
...
This technique is very useful in advanced platform games.
The variable "state" redirects not only states of the character, but also the costumes of the character. That means that character cannot attack while running etc.
I would also recommend from my experience not to use broadcasting for moving and anything else, because it can often happen what I said that shouldn't happen: for example your character will be able to attack while jumping and you will have problems with changing costumes and stucking in the air etc.
Thanks for reading.
Offline
Kresinho wrote:
I have a different advice than the one given for moving, jumping, shooting and anything else that come up. I'm using this actually myself on one archer game I'm making.
You use one variable. Let's call it "state".
Here is the explanation:
state=0 the character is standing still and doing nothing
state=1 the character is moving left or right
state=2 the character is jumping
state=3,4,5..... the character is attacking, defending or anything else.
While state is 0, you can go to any other state. So, while you are standing still, you can start moving, jumping or anything else.
While state is 1- moving, you can jump.
While state is 2- jumping, you can move right or left.
But while state is not 0, you cannot start doing anything else, with only two exceptions that I mentioned.
Example:
<when green flag clicked>
<forever>
<if><key[ right arrow ]pressed?>
<if><( state<=> 0 )>
<set{ state}to( 1)
...
This technique is very useful in advanced platform games.
The variable "state" redirects not only states of the character, but also the costumes of the character. That means that character cannot attack while running etc.
I would also recommend from my experience not to use broadcasting for moving and anything else, because it can often happen what I said that shouldn't happen: for example your character will be able to attack while jumping and you will have problems with changing costumes and stucking in the air etc.
Thanks for reading.
The only problem with that is that you can go through any wall and floor. you can only go left and right! that sounds like a bad platformer to me! good luck w/ your archer game!
Offline
-GizzardGulp-, I don't know why would you think it could only go left and right. It can of course go up and down as well. So please don't attack other ideas.
And I don't understand why did you say that you can go through any wall and floor.
Why? Of course, that is not the case and I don't know how did you come up with that.
That's all I have to say about it.
Offline
Kresinho wrote:
-GizzardGulp-, I don't know why would you think it could only go left and right. It can of course go up and down as well. So please don't attack other ideas.
And I don't understand why did you say that you can go through any wall and floor.
Why? Of course, that is not the case and I don't know how did you come up with that.
That's all I have to say about it.
their is no wall sensing, thats why
Offline