Advertisement
Guest User

time travel

a guest
Jun 10th, 2014
517
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. Step event
  2.  
  3. if (created==0)
  4. {
  5. global.playerTime=self.time+1;
  6. future=instance_create(x,y,obj_boulder);
  7. future.time=self.time+1;
  8. created=1;
  9. }
  10.  
  11. if (time==global.playerTime)
  12. {
  13. visible=true;
  14. }
  15.  
  16. if (time!=global.playerTime)
  17. {
  18. // visible=false;
  19. }
  20.  
  21. if (created==1)
  22. {
  23. future.x=x+lengthdir_x(4,dir);
  24. future.y=y+lengthdir_y(4,dir);
  25. future.dir=dir;
  26. }
  27.  
  28. Collision with wall
  29.  
  30. future.dir=180;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement