This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-12-24 08:38:42

farterfive
Scratcher
Registered: 2010-12-17
Posts: 8

i dont know how to make things move when creating a game.

how do i make things move when creating a game.

Offline

 

#2 2010-12-24 15:43:00

BlahBlahRatSheep
Scratcher
Registered: 2010-11-07
Posts: 500+

Re: i dont know how to make things move when creating a game.

may you say what kind of way you wanna move things in your game?:3


"and knew ones will come and they will get poopular then theyll leave and more pooples will get poopular." -soupoftomato
http://i405.photobucket.com/albums/pp132/kimchi_and_chowder/lolicon.gif Lovely day to air out my tongue, yes?

Offline

 

#3 2010-12-26 12:57:04

StrykerV
New Scratcher
Registered: 2010-06-15
Posts: 51

Re: i dont know how to make things move when creating a game.

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


99.9999% Crazy, 0.0001% Hamburgeh Makeh  smile

Offline

 

#4 2010-12-26 13:04:59

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: i dont know how to make things move when creating a game.

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


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#5 2010-12-26 13:51:58

johndo77
Scratcher
Registered: 2010-07-30
Posts: 1000+

Re: i dont know how to make things move when creating a game.

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.


Crizapples

Offline

 

#6 2010-12-26 13:58:35

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: i dont know how to make things move when creating a game.

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.gif

Sometimes it's better to not use velocity though.

True, but velocity is smoother.


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#7 2010-12-27 01:02:10

XplodingEggs
Scratcher
Registered: 2009-12-09
Posts: 100+

Re: i dont know how to make things move when creating a game.

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.gif

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 left/right facing arrow to the left of the sprite picture at the top of the screen.
Hope this helps!  wink

Last edited by XplodingEggs (2010-12-27 01:03:38)


http://i54.tinypic.com/102kqr7.jpg

Offline

 

#8 2010-12-27 01:05:36

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: i dont know how to make things move when creating a game.

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!  wink

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)


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#9 2010-12-27 01:17:25

XplodingEggs
Scratcher
Registered: 2009-12-09
Posts: 100+

Re: i dont know how to make things move when creating a game.

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!  wink

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.  hmm  But yes, Those are scripts you can build off of.


http://i54.tinypic.com/102kqr7.jpg

Offline

 

#10 2010-12-31 16:44:29

caleb1221
Scratcher
Registered: 2010-12-27
Posts: 2

Re: i dont know how to make things move when creating a game.

<when green flag clicked><forever><if>

Offline

 

#11 2011-01-02 04:54:21

spike111
Scratcher
Registered: 2010-12-16
Posts: 24

Re: i dont know how to make things move when creating a game.

[blocks]<when green flag clicked><forever><if><key[x]pressed?><point in direction(x)><move(x)steps>[/blocks]

Offline

 

#12 2011-01-03 11:15:29

jfmlove6
Scratcher
Registered: 2010-12-20
Posts: 1000+

Re: i dont know how to make things move when creating a game.

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


http://bbsimg.ngfiles.com/1/23337000/ngbbs4e84d18f6a0ee.jpg

Offline

 

Board footer