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

#1 2011-06-11 00:18:02

Aliendude12
New Scratcher
Registered: 2011-04-21
Posts: 28

Help! I need somebody! Help!! :O :O :O :O

smile  Hello peoplez!!!  smile  I am here to discuss something else! I need help making my new game called Cubio!!  big_smile  YAAAAY!!!  big_smile  The thing is...I have a glitch.  sad  I am using the variable <{scrollX}> and when I move x direction part of the sprites follow me on the sides!  sad  It only seems normal when you are standing where its at!!!  sad 

yikes  Can you guyz help me?  yikes
?                  ?                 ?

Offline

 

#2 2011-06-11 04:15:47

zandir
Scratcher
Registered: 2011-06-07
Posts: 5

Re: Help! I need somebody! Help!! :O :O :O :O

hmm maybe i can maybe i cant but ill give it a try publish it to my scratch society and ill have a look and see what i can do

Offline

 

#3 2011-06-11 11:05:46

coca0101
Scratcher
Registered: 2011-05-15
Posts: 63

Re: Help! I need somebody! Help!! :O :O :O :O

One thing you can do is put a boarder around the edges so it doesn't reveal the sprite until it's supposed to. Or if it's going to the back, you can hide if xposition=000
<when green flag clicked>
<forever if><( <x position> <=> # )>
<hide>
<end>

Offline

 

#4 2011-06-11 13:21:41

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Help! I need somebody! Help!! :O :O :O :O

Similar to what coca said, you can set the sprites to show only when scrollx is within the range of values when it should be on stage. That way when they're positioned off stage, they'll be completely hidden. Just make sure to have both a condition when it should show and when it should hide; otherwise, it will get stuck either being shown or hidden.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#5 2011-06-12 10:03:13

SpriteMaster
Scratcher
Registered: 2009-01-25
Posts: 1000+

Re: Help! I need somebody! Help!! :O :O :O :O

Make a sprite that has  two black sides on the far left and right, and make it about one finger wide. That should make it look nice and eliminate your issue.


`                        Click here for my YouTube channel!                        `http://i.imgur.com/4Qz3I.jpg

Offline

 

Board footer