Hello Peepz!
I am having troublez with my new game called Cubio. It is a remake of the game Mario. :rolleyes:Anyway...I am using scrollX which makes it scroll throughout the level.
I am trying to make a coompa walk back and forth with scrollX. So pleaz HELP ME!
Offline
I don't know how, but can you tell me when you find out?
Offline
You can give the goomba a variable called ScrollXPosition or some name like that. Set that variable to where you want the goomba to be on the X axis (if the goomba is to the right of the starting position, set it to a positive number. If it's to the left, set it to a negative number). Now give some scripts like:
The first script will set it to where it should be when it's affected by the ScrollX variable, and the second script makes it go back and forth.
Basically, whatever way you want the goomba to move horizontally, use "change ScrollXPosition by ()" instead of "change x by ()".
Last edited by Kileymeister (2011-06-06 21:13:46)
Offline
THANKS! I think I'll Try it! You just saved me from a whole day's worth of figuring out!
:DWell since I'm a new scratcher!
I'll put the link in here so you can check it out when it's done.
I also give you permission to remix it. That is if you are even interested in looking at it. Well THANKS AGAIN!
Offline
Kileymeister wrote:
<when green flag clicked>
<forever><
<set x to( (( scrollx <+> scrollxposition ))
it works. i tried it.
and
Last edited by JPY (2011-06-07 17:08:02)
Offline