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

#1 2010-01-19 17:01:47

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Things should actually go offscreen.

I'm very sure this is possible. The reason I am suggesting this is because my latest 3D pen project has some edge intersection issues and lines distort when they get to a certain distance... If I use some of the intersection techniques on the internet then it will not work for what I am doing and if it did, would make it much slower...

Offline

 

#2 2010-01-19 17:58:42

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Things should actually go offscreen.

I know. There's supposed to be a limit so you can't lose sprites off-screen, but it only makes things harder, especially scrolling projects (and pen projects).


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#3 2010-01-19 18:03:38

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Things should actually go offscreen.

I support.


http://i.imgur.com/WBkM2QQ.png

Offline

 

#4 2010-01-19 18:16:43

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Things should actually go offscreen.

OK - here's an example of it cropping up in a 3D Racer I started coding.

http://i364.photobucket.com/albums/oo85/RHY3756547/EX.gif

OK - that last one is an actual engine bug (still need to fix some problems...) but all the others are really annoying. I can rotate the camera and show you the horror, but I'm too lazy. The engine works REALLY smooth otherwise (15 fps I'd estimate. Much faster than LINE tennis.

Last edited by RHY3756547 (2010-01-19 18:17:39)

Offline

 

#5 2010-01-19 18:50:05

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Things should actually go offscreen.

RHY3756547 wrote:

OK - here's an example of it cropping up in a 3D Racer I started coding.

http://i364.photobucket.com/albums/oo85 … 547/EX.gif

OK - that last one is an actual engine bug (still need to fix some problems...) but all the others are really annoying. I can rotate the camera and show you the horror, but I'm too lazy. The engine works REALLY smooth otherwise (15 fps I'd estimate. Much faster than LINE tennis.

(off-topic) Looks like a cool game!

(on-topic) Can you have it just have it render it with a limit of 180 and 240, while keeping the same slope?


http://i.imgur.com/WBkM2QQ.png

Offline

 

#6 2010-01-19 19:06:16

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Things should actually go offscreen.

Lucario621 wrote:

RHY3756547 wrote:

OK - here's an example of it cropping up in a 3D Racer I started coding.

http://i364.photobucket.com/albums/oo85 … 547/EX.gif

OK - that last one is an actual engine bug (still need to fix some problems...) but all the others are really annoying. I can rotate the camera and show you the horror, but I'm too lazy. The engine works REALLY smooth otherwise (15 fps I'd estimate. Much faster than LINE tennis.

(off-topic) Looks like a cool game!

(on-topic) Can you have it just have it render it with a limit of 180 and 240, while keeping the same slope?

You can't. The engine's limitations automatically snap any values outside the level to ones inside it.

Offline

 

#7 2010-01-20 00:06:59

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: Things should actually go offscreen.

Scratch is an educational program aimed mostly at children... kids could get confused if they lose a sprite off-screen.  smile

I do agree though. Perhaps there could be a way to move sprites off-screen without losing them. (for example, being able to pan the view off the screen)


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#8 2010-01-20 00:15:52

cocoanut
Scratcher
Registered: 2007-07-10
Posts: 1000+

Re: Things should actually go offscreen.

MyRedNeptune wrote:

Scratch is an educational program aimed mostly at children... kids could get confused if they lose a sprite off-screen.  smile

I do agree though. Perhaps there could be a way to move sprites off-screen without losing them. (for example, being able to pan the view off the screen)

Well, you can always use the sprite bank and use the go-to block to make it go to coordinates 0, 0...


http://i42.tinypic.com/20gyvif.jpgPlease leave a message at the beep.
Steam: Hellephant

Offline

 

#9 2010-01-20 00:39:20

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Things should actually go offscreen.

um i have a suggestion instead of private scratch variables use ur own positional variables believe me it solves the problem.


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#10 2010-01-20 01:49:37

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: Things should actually go offscreen.

cocoanut wrote:

MyRedNeptune wrote:

Scratch is an educational program aimed mostly at children... kids could get confused if they lose a sprite off-screen.  smile

I do agree though. Perhaps there could be a way to move sprites off-screen without losing them. (for example, being able to pan the view off the screen)

Well, you can always use the sprite bank and use the go-to block to make it go to coordinates 0, 0...

Well, small children might not know that.  tongue


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#11 2010-01-20 02:06:50

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Things should actually go offscreen.

MyRedNeptune wrote:

cocoanut wrote:

MyRedNeptune wrote:

Scratch is an educational program aimed mostly at children... kids could get confused if they lose a sprite off-screen.  smile

I do agree though. Perhaps there could be a way to move sprites off-screen without losing them. (for example, being able to pan the view off the screen)

Well, you can always use the sprite bank and use the go-to block to make it go to coordinates 0, 0...

Well, small children might not know that.  tongue

If they use scratch they should be able to know that  tongue


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#12 2010-01-20 02:28:21

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: Things should actually go offscreen.

fanofcena wrote:

MyRedNeptune wrote:

cocoanut wrote:

Well, you can always use the sprite bank and use the go-to block to make it go to coordinates 0, 0...

Well, small children might not know that.  tongue

If they use scratch they should be able to know that  tongue

Scratch is an introduction to programming. The Scratch Team tries to keep it as simple as possible.

And we're talking about like, 6-year-olds here as well.  tongue


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#13 2010-01-20 02:40:59

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Things should actually go offscreen.

fanofcena wrote:

um i have a suggestion instead of private scratch variables use ur own positional variables believe me it solves the problem.

As soon as you hit the go to button even with variables it snaps to screenspace.

Offline

 

#14 2010-01-20 02:45:44

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Things should actually go offscreen.

RHY3756547 wrote:

fanofcena wrote:

um i have a suggestion instead of private scratch variables use ur own positional variables believe me it solves the problem.

As soon as you hit the go to button even with variables it snaps to screenspace.

Its impossible i think thats a bug with ur programming check the algorithms once again
as this will work only with points ie sprites cant be use sprites ie a point  will be used to render line to generate graphics.

can u show the rendering code once

@ MRN,
well 6 year old kids cannot programm something to make the thing go out of screen
well either thier can be a button to release all the limits from the sprites for pros

Last edited by fanofcena (2010-01-20 02:51:35)


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#15 2010-01-20 03:03:29

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Things should actually go offscreen.

fanofcena wrote:

RHY3756547 wrote:

fanofcena wrote:

um i have a suggestion instead of private scratch variables use ur own positional variables believe me it solves the problem.

As soon as you hit the go to button even with variables it snaps to screenspace.

Its impossible i think thats a bug with ur programming check the algorithms once again
as this will work only with points ie sprites cant be use sprites ie a point  will be used to render line to generate graphics.

can u show the rendering code once

@ MRN,
well 6 year old kids cannot programm something to make the thing go out of screen
well either thier can be a button to release all the limits from the sprites for pros

There is nothing wrong with the renderer (except for some Z issues). When you use variables to scroll the sprite still stays onscreen. Pen drawings also snap to the screen.

Offline

 

#16 2010-01-20 03:21:02

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Things should actually go offscreen.

well u just need to tell the sprite where it should intersect with screen boundary if its out of screen thats it that can be done by mathematics. cant u when u r done it is like
set x to intersect pos
set y to intersect pos
and it will be gone


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#17 2010-01-20 04:00:49

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: Things should actually go offscreen.

fanofcena wrote:

well 6 year old kids cannot programm something to make the thing go out of screen

Who told you that?  tongue

fanofcena wrote:

well either thier can be a button to release all the limits from the sprites for pros

That's an idea ^^


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#18 2010-01-20 09:36:38

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Things should actually go offscreen.

I support this. It's generally useless and you can always get your sprites back whence they are gone just by sending them to 0,0.

Offline

 

#19 2010-01-20 11:22:28

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Things should actually go offscreen.

fanofcena wrote:

well u just need to tell the sprite where it should intersect with screen boundary if its out of screen thats it that can be done by mathematics. cant u when u r done it is like
set x to intersect pos
set y to intersect pos
and it will be gone

I've already tried the intersection techniques on the internet - but they DO NOT work with what I want to do.

Offline

 

#20 2010-01-20 14:42:07

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Things should actually go offscreen.

It would be nice to have the ability to have sprites go off-screen, especially considering how easy it is to get a sprite back to the center of the stage with the use of the "go to X:_ Y:_" block. (Of course, adding a button that allows for a sprite to return to the center of the screen would make it easier for the younger users who otherwise don't realize how to get a sprite back on the screen).


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#21 2010-01-20 15:01:25

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Things should actually go offscreen.

It would be nice if there was a toggle-able lock icon (like the one for dragging sprites) that would let you move things offstage.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#22 2010-01-20 15:12:49

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Things should actually go offscreen.

fanofcena wrote:

RHY3756547 wrote:

fanofcena wrote:

um i have a suggestion instead of private scratch variables use ur own positional variables believe me it solves the problem.

As soon as you hit the go to button even with variables it snaps to screenspace.

Its impossible i think thats a bug with ur programming check the algorithms once again
as this will work only with points ie sprites cant be use sprites ie a point  will be used to render line to generate graphics.

can u show the rendering code once

@ MRN,
well 6 year old kids cannot programm something to make the thing go out of screen
well either thier can be a button to release all the limits from the sprites for pros

You clearly don't understand.

If you ask a sprite to go to x: 400 y: 600, it will end up just going to x: 180 y:240. The same for pen, so it messes up the picture.


http://i.imgur.com/WBkM2QQ.png

Offline

 

#23 2010-01-20 15:47:07

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Things should actually go offscreen.

The "show" function (when you right click on a sprite's thumbnail) is used a lot by beginners (in my experience). I thought that made hidden sprites go to 0,0. So we could also say that if the coordinates of the sprite are past a certain point, it would also go to 0,0 when "show" is selected.

And yes. WE NEED THIS!!! My scrollers need a black side-screen because of this.
Maybe you could have a turning it on/off feature?


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#24 2010-01-22 04:37:02

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Things should actually go offscreen.

Well anyways rhy i found out whats wrong just to make sure arent u using the track to rotate on an axis of itself it should rotate on the car . I did reverse mathematics from the Gif to figure this out.


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#25 2010-01-22 23:49:57

ssaamm
Scratcher
Registered: 2008-04-05
Posts: 8

Re: Things should actually go offscreen.

I highly agree.
I think, also, to avoid the issue of "losing" sprites, there should be a "center" button under them, and it does the same as shift-clicking the sprite's icon.

Offline

 

Board footer