I am makin a game called pokemon rpg. I released p.1 and 2. In p.3 I used the exact same scripts for the main character but my character wont move. Why? It is a platformer type of game. Here is the script. It is ment to make the background scroll so it looks like the character is moving. <when green flag clicked><hide> <when I receive[ Play game] <switch to costume[ costume 2] (facing left) <go to x
-193 )y
-130) (starting position) Then another character says: new quest recieved. That works. Then the movement. <when I receive[ Play game] <forever> <if><key[ left arrow ]pressed?> <switch to costume[ costume 2] (facing left) <change{ scrollX }by(5) <end> <end> Do the same as the above (moving left) but change left to right and change by 5 to by -5 for right movement. If this works for you tell me and I will write the other scripts.
Offline
I'm making the whole thing easier to understand.
littlebird2472 wrote:
I am making a game called Pokemon RPG. I released p.1 and 2. In p.3 I used the exactly the same scripts for the main character, but my character won't move. Why? It is a platform type of game. Here is the script. It is meant to make the background scroll so it looks like the character is moving.
[blocks]
<when green flag clicked>
<hide>
<when I receive[ Play game
<switch to costume[ costume2 (facing left)
<go to x-193 )y
-130 (starting position)
[/blocks]
Then another character says: new quest received. That works. Then the movement.
[blocks]
<when I receive[ Play game
<forever>
<if> <key[ left arrow ]pressed?>
<switch to costume[ costume2 (facing left)
<change{ scrollX }by(5
<end>
<end>
[/blocks]
Do the same as the above (moving left) but change left to right and change by 5 to by -5 for right movement. If this works for you tell me and I will write the other scripts.
Last edited by mathematics (2010-04-15 06:06:41)
Offline