Advertisement
Trickysticks

Untitled

Jul 22nd, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. @Initialize{
  2. attack1; //I just wrote attack1 here. I didn't copy and paste the task itself, but I wrote the task name here. This "calls" the task.
  3. }
  4.  
  5. task attack1{
  6. //The stuff you want attack1 to do goes here. Shooting bullets, playing sounds, whatever. This isn't inside @MainLoop, @Initialize, or @Anything.
  7. }
  8.  
  9. @MainLoop{
  10. ObjEnemy_SetIntersectionCircleToShot(objEnemy, GetEnemyX, GetEnemyY, 23);
  11. ObjEnemy_SetIntersectionCircleToPlayer(objEnemy, GetEnemyX, GetEnemyY, 17);
  12. yield;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement