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

#1 2012-09-12 18:50:44

iSilenceuall
New Scratcher
Registered: 2011-09-14
Posts: 5

Pen location

I'm trying to make a tron style game, and i was wondering how i can make then pen start just behind the tron cycle so that you don't die instantly.

Offline

 

#2 2012-09-12 18:57:45

zubblewu
Scratcher
Registered: 2011-02-17
Posts: 1000+

Re: Pen location

Make a sprite that goes behind the tron cycle and have the pen go to it.


........................................................................................................................................................................................................................................

Offline

 

#3 2012-09-12 19:40:34

iSilenceuall
New Scratcher
Registered: 2011-09-14
Posts: 5

Re: Pen location

Ill give that a try, thanks

Offline

 

#4 2012-09-12 19:44:59

zubblewu
Scratcher
Registered: 2011-02-17
Posts: 1000+

Re: Pen location

You're welcome, if you ever need help with anything just ask me  smile


........................................................................................................................................................................................................................................

Offline

 

#5 2012-09-13 18:29:11

iSilenceuall
New Scratcher
Registered: 2011-09-14
Posts: 5

Re: Pen location

so this is what i have for the sprite following behind the tron cycle


when green flag clicked
        clear
        pen up
        hide
        forever  
            set pen color to c[47FFFB]
            set pen size to 1
            if ((Players) > "0") 
                if ((timer) > "1") 
                    pen down
                if (( "direction" of s[Sprite1] ) = "90") 
                    set x to (( "x position" of s[Sprite1] ) + -20)
                    set y to ( "y position" of s[Sprite1] )
                if (( "direction" of s[Sprite1] ) = "0") 
                    set y to (( "y position" of s[Sprite1] ) + -20)
                    set x to ( "x position" of s[Sprite1] )
                if (( "direction" of s[Sprite1] ) = "180") 
                    set y to (( "y position" of s[Sprite1] ) + 20)
                    set x to ( "x position" of s[Sprite1] )
                if (( "direction" of s[Sprite1] ) = "-90") 
                    set x to (( "x position" of s[Sprite1] ) + 20)
                    set y to ( "y position" of s[Sprite1] )
but whenever i turn, it moves the sprite away making a sort of "bump" in the line.. so im wondering how to make it turn at the same point (as opposed to the same time) as the tron cycle

Offline

 

#6 2012-09-13 18:32:55

iSilenceuall
New Scratcher
Registered: 2011-09-14
Posts: 5

Re: Pen location

hopefully that makes sense because i copied and pasted from the summary and dont really know how to make it look the same as what i really have  tongue

p.s. sprite 1 = tron cycle (im bad a titling sprites xD)

Offline

 

Board footer