i am making a minecraft type of game i need a enmey to shoot.
Offline
Make, say, an arrow, a sprite.
Then:
[blocks]<when green flag clicked>
<hide>
<if>
<go to[ Enemy
<show>
<glide( 1 )secs to x X position of Player )y Y position of Player[/blocks]
(X position of - and Y position of - are blocks in sensing.)
Hope this helps!
Offline
thanks
Offline
PlutoIsHades wrote:
Make, say, an arrow, a sprite.
Then:
[blocks]<when green flag clicked>
<hide>
<if>
<go to[ Enemy
<show>
<glide( 1 )secs to x X position of Player )y Y position of Player[/blocks]
(X position of - and Y position of - are blocks in sensing.)
Hope this helps!
Well it won't because it will always go to the player. You should say instead of Gliding, try this:
show
repeat until touching player OR edge OR a ground
move 10 steps
hide
go to enemy
This should work more efficiently.
Offline
Just download this project as an example.
Offline
Thescratch3 wrote:
PlutoIsHades wrote:
Make, say, an arrow, a sprite.
Then:
[blocks]<when green flag clicked>
<hide>
<if>
<go to[ Enemy
<show>
<glide( 1 )secs to x X position of Player )y Y position of Player[/blocks]
(X position of - and Y position of - are blocks in sensing.)
Hope this helps!Well it won't because it will always go to the player. You should say instead of Gliding, try this:
show
repeat until touching player OR edge OR a ground
move 10 steps
hide
go to enemy
This should work more efficiently.
Okay, I get what you're saying. Thanks for correcting me.
Offline