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

#1 2011-06-30 17:04:09

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

Pokemon Game Help!

I'm making a Pokemon game and wish to throw a Pokeball in the direction I am facing. Can anyone help? Thanks.

Offline

 

#2 2011-06-30 18:52:56

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

Re: Pokemon Game Help!

Script in pokeball:
When green flag Clicked
forever
If key space pressed
go to player
show
point in direction(direction of player)
repeat until touching pokemon or touching edge
move ten steps
end repeat
hide
end if
end forever

Last edited by ImagineIt (2011-07-01 22:43:20)

Offline

 

#3 2011-06-30 21:01:22

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Pokemon Game Help!

Since ImagineIt is correct, I'll tell you where the block you're probably looking for is.  Go to sensing and look for the block that says costume# of sprite1 (sprite1 might not be right).  Drag it out and change costume# to direction and sprite1 to the name of your player sprite.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#4 2011-07-01 04:30:23

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

Re: Pokemon Game Help!

Do you mean looks not sensing?

Offline

 

#5 2011-07-01 12:07:35

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

Re: Pokemon Game Help!

No, he means sensing.

Offline

 

#6 2011-07-01 20:42:30

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

Re: Pokemon Game Help!

Well also you could do it like this:

When (key) pressed
point in direction (of player)
change x by pick random from something to something
wait 0.1 second
change y (till touching ground or whatever you want)

or you could do the same thing but put when flag clicked forever if or repeat until key space pressed (or whatever key you wanted).

Hope this helps! Good luck on your upcoming Pokemon game!


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

Offline

 

Board footer