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

#1 2010-07-19 01:37:57

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Camera Scrolling

'k, so I just had an awesome idea- fake 'camera' 3D through scrolling. Basically, that means that the objects move around the stage like a camera is looking around the room with the ability to turn 360 degrees. Anyone know how to actually do this, though?


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#2 2010-07-19 02:25:39

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: Camera Scrolling

This wasn't made to do 360 but it could be. Is it similar to what you are talking about?


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

#3 2010-07-19 08:25:16

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Camera Scrolling

What you have to do is use sines and cosines to adjst the x, y, and size (z) of your objects.  It would be a little difficult, but definitely possible.  I might try to make a template for you, but I've got stuff going on, so it might not happen.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#4 2010-07-19 10:37:03

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Camera Scrolling

Locomule wrote:

This wasn't made to do 360 but it could be. Is it similar to what you are talking about?

I'm talking about scrolling that goes to -360º when it's at 360º, and vice-versa. That alone is easy enough, but clearly, the number of degrees must be larger [and stuff].

AtomicBomb3 wrote:

What you have to do is use sines and cosines to adjst the x, y, and size (z) of your objects.  It would be a little difficult, but definitely possible.  I might try to make a template for you, but I've got stuff going on, so it might not happen.

I'm talking about more of a point and click game, so you wouldn't really need a Z. Unfortunately, I just realized that when moving, in order for it to look good, the wall would have to move too xD


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#5 2010-07-19 10:52:43

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: Camera Scrolling

Mine does that. And mine doesn't operate by degrees, I never wanted to to make a circle, just back and forth. If you watch it, you will see that it uses different moving layers, like you just mentioned.

Ps. My walls move. To add degrees as you seem to be thinking, just make things scroll off one side and back onto the other. The problem would be that to have moving "walls" or layers, they must move at different speeds. Therefore to make them into a seamless, grouped rotation, they must be sized differently according to how fast they scroll. It would be far easier to make the layers into separate graphical elements of the screen (like mine has mountains in the background vs the house and stuff in front than to try to sync all the layers into one thing.


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

#6 2010-07-19 11:41:56

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Camera Scrolling

Locomule wrote:

Mine does that. And mine doesn't operate by degrees, I never wanted to to make a circle, just back and forth. If you watch it, you will see that it uses different moving layers, like you just mentioned.

Ps. My walls move. To add degrees as you seem to be thinking, just make things scroll off one side and back onto the other. The problem would be that to have moving "walls" or layers, they must move at different speeds. Therefore to make them into a seamless, grouped rotation, they must be sized differently according to how fast they scroll. It would be far easier to make the layers into separate graphical elements of the screen (like mine has mountains in the background vs the house and stuff in front than to try to sync all the layers into one thing.

lol I was talking more about the corners of the wall must move, or it won't seem very realistic  tongue


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#7 2010-07-19 12:37:59

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Camera Scrolling

You could try and make it so it just scrolled and try to design a working corner thing, but I don't think that would work very well.  The best way would be to just have either the objects that move or four different backgrounds.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#8 2010-07-19 12:42:19

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Camera Scrolling

AtomicBawm3 wrote:

You could try and make it so it just scrolled and try to design a working corner thing, but I don't think that would work very well.  The best way would be to just have either the objects that move or four different backgrounds.

That's what I'm saying- the objects would move still, it's just the corners move too.

Last edited by Sunrise-Moon (2010-07-19 12:42:48)


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#9 2010-07-19 15:05:47

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Camera Scrolling

Do you mean something like this?  It's pretty much impossible to get a real 3D room and still have it work as a game, but this is used by club penguin I'm pretty sure.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#10 2010-07-19 15:26:19

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Camera Scrolling

AtomicBawm3 wrote:

Do you mean something like this?  It's pretty much impossible to get a real 3D room and still have it work as a game, but this is used by club penguin I'm pretty sure.

That's exactly what I was talking about!


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#11 2010-07-19 15:38:21

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Camera Scrolling

Sunrise-Moon wrote:

AtomicBawm3 wrote:

Do you mean something like this?  It's pretty much impossible to get a real 3D room and still have it work as a game, but this is used by club penguin I'm pretty sure.

That's exactly what I was talking about!

Ok, then you can either use that or make you're own.  I drew it pretty sloppy, but you do need a curve for it to work.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#12 2010-07-19 16:00:43

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Camera Scrolling

AtomicBawm3 wrote:

Sunrise-Moon wrote:

AtomicBawm3 wrote:

Do you mean something like this?  It's pretty much impossible to get a real 3D room and still have it work as a game, but this is used by club penguin I'm pretty sure.

That's exactly what I was talking about!

Ok, then you can either use that or make you're own.  I drew it pretty sloppy, but you do need a curve for it to work.

Curve? Why? Thanks  smile


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#13 2010-07-19 17:51:33

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Camera Scrolling

Sunrise-Moon wrote:

AtomicBawm3 wrote:

Sunrise-Moon wrote:


That's exactly what I was talking about!

Ok, then you can either use that or make you're own.  I drew it pretty sloppy, but you do need a curve for it to work.

Curve? Why? Thanks  smile

That's the only way the 3D works.  If you don't curve, you get just a straight line.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

Board footer