Loop with interpolate

SingleSparqSingleSparq Member Posts: 1,339
edited November -1 in Working with GS (Mac)
How do you loop with interpolate without using spawn? Say I have an actor that goes across the screen. When it reaches the end I want it to start over again. I could have it destroy on contact at the end and re-spawn it but If the point is ti avoid spawning actors I'd rather loop it.

Comments

  • EastboundEastbound Member, BASIC Posts: 1,074
    Simply check if x > scene_width
    change attribute x to 0

    Alternatively, you could check wrap x and wrap y in the scene attributes, and the objects will jump to the opposite side of the screen without you having to add any rules.
  • SingleSparqSingleSparq Member Posts: 1,339
    Hi, thanks - I shall check that out.

    Note to GS Forum admin - does the Notify by email thing work? cause I've never gotten an email on subscribed topics like this.
  • quantumsheepquantumsheep Member Posts: 8,188
    The email thing worked for me on the joystick help thread.

    However, anything I write in the London meet thread isn't acknowledged on the front page. For example, draper may have written something 4 hours ago, and this will be shown. If I post *after* him, it still shows 'draper, 4hours' instead of 'sheepy, just now!'.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    i noticed the same thing with a thread i started in the announce your game section. Never showed the thread unless someone else replied. maybe an anti-bump effort
  • SingleSparqSingleSparq Member Posts: 1,339
    Ha! Yeah being marked Junk at My end - haven't looked there for a while.
  • BarkBarkCoBarkBarkCo Member Posts: 1,400
    I got close using modulus (%): http://gamesalad.com/game/play/54665

    if you want to skip back to the beginning without watching the movement, you would need to add rules.

    ^did it: http://gamesalad.com/game/play/54667

    that game is not using any wrapping...
Sign In or Register to comment.