This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-07-01 09:25:16

SimplyJesus
New Scratcher
Registered: 2011-06-30
Posts: 3

More Pokemon Game Help!

I want a pokemon to follow a sprite, so how? Please put you answer in blocks if you can.

Offline

 

#2 2011-07-01 12:14:51

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: More Pokemon Game Help!

First make sure that when you press up it will change direction, NOT costumes(Well it can change costumes but the costumes can only be something like a walking costume not an up, down, left, or right.)
Now make a variable where 1 = up 2 =  down 3 =  left and 4 = right

Put this in the pokemon:
When green flag clicked
forever
point in direction (direction of player)
if direction = 1
go to x position of player y position of player - 20
end if
if direction = 2
go to x position of player y position of player + 20
end if
if direction = 3
go to x position of player +20  y position of player
end if
if direction = 4
go to x position of player - 20 y position of player
end if
end forever

Offline

 

#3 2011-07-01 20:38:09

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: More Pokemon Game Help!

You could do it a much simpler way. Just make the sprite you want to follow, put Go to Sprite whatever, change x by - (about 30) or Glide to x whatever and y whatever. And put it forever (if you want to do it forever) or repeat until (your choice). But if the leading sprite changes a direction then you should change the y for the following sprite. This may or may not work (I just pictured your problem in my head  tongue ). Hope this helps! Good luck!


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

Board footer