• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
 
Reacting
Collisions are all important in Games. You need to control what happenswhen one object hits another, this could be bullets or directing an object ina maze.Add in two sprites to your Stage and give them proper namesWe want the duck to say sorry when it bumps into the
octopus
. The first step is to make the duck move using the arrow key: Now we need to set up the COLLISION with these commands: The Duck says “Pardon Me” and moves back a bit (100 pixels) and thescript stopsNow we add this inside the
Forever
command: The forever loop keepsthe duck moving to the
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...