Pages: 1
Topic closed
how do i make things move when creating a game.
Offline
may you say what kind of way you wanna move things in your game?:3
Offline
Beginner Movement is best done like
<when[ up arrow ]key pressed>
<change y by( 10
<when[ down arrow ]key pressed>
<change y by( -10
<when[ right arrow ]key pressed>
<change x by( 10
<when[ left arrow ]key pressed>
<change x by( -10
Offline
Sprite motion is caused with motion blocks (the blocks on the left that are blue and labeled "Motion").
For smooth controlled bird's-eye-view motion, use this:
Offline
Kileymeister wrote:
Sprite motion is caused with motion blocks (the blocks on the left that are blue and labeled "Motion").
For smooth controlled bird's-eye-view motion, use this:
http://i52.tinypic.com/2zedu2p.gif
Sometimes it's better to not use velocity though.
Offline
johndo77 wrote:
Kileymeister wrote:
Sprite motion is caused with motion blocks (the blocks on the left that are blue and labeled "Motion").
For smooth controlled bird's-eye-view motion, use this:
http://i52.tinypic.com/2zedu2p.gifSometimes it's better to not use velocity though.
True, but velocity is smoother.
Offline
Kileymeister wrote:
johndo77 wrote:
Kileymeister wrote:
Sprite motion is caused with motion blocks (the blocks on the left that are blue and labeled "Motion").
For smooth controlled bird's-eye-view motion, use this:
http://i52.tinypic.com/2zedu2p.gifSometimes it's better to not use velocity though.
True, but velocity is smoother.
Yes, velocity is smoother, but I think for a new scratcher it would be simpler to start with just changing X and Y, or pointing in a direction and moving a certain amount of steps/pixels. For that, you might do something like this:
Also, if you wanted to make it never look up or down, you would click the left/right facing arrow to the left of the sprite picture at the top of the screen.
Hope this helps!
Last edited by XplodingEggs (2010-12-27 01:03:38)
Offline
XplodingEggs wrote:
Kileymeister wrote:
johndo77 wrote:
Sometimes it's better to not use velocity though.
True, but velocity is smoother.
Yes, velocity is smoother, but I think for a new scratcher it would be simpler to start with just changing X and Y, or pointing in a direction and moving a certain amount of steps/pixels. For that, you might do something like this:
http://oi56.tinypic.com/34sp9iw.jpg
Also, if you wanted to make it never look up or down, you would click the <-> arrow to the left of the sprite picture at the top of the screen.
Hope this helps!
But how would the learn then? I guess it would be a good way start, though...
<move( 5 )steps> <-- this will make it move in the direction it's facing by 5
<point towards( <-- this will make it point towards a sprite, or the mouse pointer
<change x by( this will change the x veloxity
etc etc
Last edited by ssss (2010-12-27 01:27:06)
Offline
ssss wrote:
XplodingEggs wrote:
Kileymeister wrote:
True, but velocity is smoother.Yes, velocity is smoother, but I think for a new scratcher it would be simpler to start with just changing X and Y, or pointing in a direction and moving a certain amount of steps/pixels. For that, you might do something like this:
http://oi56.tinypic.com/34sp9iw.jpg
Also, if you wanted to make it never look up or down, you would click the <-> arrow to the left of the sprite picture at the top of the screen.
Hope this helps!But how would the learn then? I guess it would be a good way start, though...
[blocks]
<move( 5 )steps> <-- this will make it move in the direction it's facing by 5
<point towards( <-- this will make it point towards a sprite, or the mouse pointer
<change x by( this will change the x veloxity
etc etc
[/blocks]
Oh my, it seems your text is glitched. But yes, Those are scripts you can build off of.
Offline
Here is how I make things move. It is very simple:
<when[ right arrow ]key pressed>
<move( 10 )steps>
<when[ left arrow ]key pressed>
<move( -10 )steps>
<when[ up arrow ]key pressed>
<change y by( 10
<when[ down arrow ]key pressed>
<change y by( -10
Offline
Topic closed
Pages: 1