GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

how do i make a actor move to and fro

bad_dawgbad_dawg Posts: 38Member
hi guys i want to make a actor move from one place to another and make it come back to the same position repeatedly...like the enemies in the nes mario games...but i dont know how...

help please :D

Comments

  • jonmulcahyjonmulcahy Posts: 10,376Member, Sous Chef
    Do a search, this was asked and answered yesterday. I bet the thread has not even left page 3
  • b2iscoolb2iscool Posts: 135Member
    jonmulcahy said:
    Do a search, this was asked and answered yesterday. I bet the thread has not even left page 3

    I know this question is literally asked like atleast twice a day haha so i was like forget this and made a demo
    here it is: http://gamesalad.com/game/13916
  • JohnPapiomitisJohnPapiomitis Posts: 6,256Member
    Theres tons of demos on this, the point is to search for them.

    And also he wanted a pacing back and forth action, not bouncing between 2 walls. But nice lil demo
  • b2iscoolb2iscool Posts: 135Member
    ya its the same idea though you could put invisible borders or whatever
  • JohnPapiomitisJohnPapiomitis Posts: 6,256Member
    b2iscool said:
    ya its the same idea though you could put invisible borders or whatever

    that would work for a bouncing ball like your demo but for a enemy character nooo you dont want to put walls, that will make it sloppy

    you would want to use interpolate and rules when self position = to make a continous back and forth pace with animations and such for each direction
  • b2iscoolb2iscool Posts: 135Member
    http://gamesalad.com/game/14100: just add the right and left animations on to the image part and there ya go!
  • JohnPapiomitisJohnPapiomitis Posts: 6,256Member
    b2iscool said:
    http://gamesalad.com/game/14100: just add the right and left animations on to the image part and there ya go!

    thats my point, it sticks to the walls sometimes, and also what if you want him to move up and down while across, that gets even sloppyer when using that way. Second by using interpolate you can have your actor non moveable, and have pinpoint precious as to where all its movements are.

    Im not trying to argue with you, im just saying theres alot better way.
  • tenrdrmertenrdrmer Posts: 9,934Member, Sous Chef, Senior Sous-Chef
    Yeah he just wants a constant moving back and forth object. the back and forth movement is very simple but honestly if you are not far enough along in reading to be able to think up that logic you prob need to do a bit more reading first.

    For example look at the video of the last update to my bubble ball template. there are platforms that move back and forth .no walls or anything thats what he's looking for I believe.

    ___________________________________________________________________________________
    GS BubbleBall Template HERE!!
    Stacks Level Selection Template HERE!!
    AppSolute Entertainment on Facebook
    image

    It's not my fault I never learned to take responsibility for anything. ;)

  • b2iscoolb2iscool Posts: 135Member
    JohnPapiomitis said:
    thats my point, it sticks to the walls sometimes, and also what if you want him to move up and down while across, that gets even sloppyer when using that way. Second by using interpolate you can have your actor non moveable, and have pinpoint precious as to where all its movements are.

    Im not trying to argue with you, im just saying theres alot better way.

    ya i understand totally just showing a way to do it when its somthing simple but interpolate is def better for things like those nasty jumping turtle that shoot thos things out in super mario bros! haha
This discussion has been closed.