Hey, I'm making a kind of RPG game. I want it so when I click, the sprite goes to the place where the mouse clicked. Any help will be greatly appreciated.
I got this so far:
<when green flag clicked>
<if>(mouse down)
<point towards( mouse pointer)
<forever>
<move(1)steps>
Offline
billzter wrote:
Hey, I'm making a kind of RPG game. I want it so when I click, the sprite goes to the place where the mouse clicked. Any help will be greatly appreciated.
I got this so far:
<when green flag clicked>
<if>(mouse down)
<point towards( mouse pointer)
<forever>
<move(1)steps>
Maybe you should look at the code of DSdude10's Club penguin project to help?
Hope that Helps!
Offline
YEs that works too.
Offline
billzter wrote:
<when green flag clicked>
<if><mouse down?>
<glide( INSERTNUMBERHERE )secs to x<mouse x> )y
<mouse y>
I'm trying to adjust mine to one similar to this. The difference is that im getting the computer to automatically change the amount of time gliding. this way, it will stay the same speed.
Offline