That sounds very hard. ^^
Offline
It probably is. But I've come up with a way to rotate the camera.
Offline
Just asking, how do you run a script repeatidly forever?
Offline
rdococ wrote:
It probably is. But I've come up with a way to rotate the camera.
Cool! How're you doin' it?
Offline
rdococ wrote:
Just asking, how do you run a script repeatidly forever?
I think in Javascript you can use a while(true) loop or something to that effect.
Offline
veggieman001 wrote:
rdococ wrote:
It probably is. But I've come up with a way to rotate the camera.
Cool! How're you doin' it?
Actually pretty simple -- it just changes the X and Y position based on x-rotation and y-rotation values.
Offline
rdococ wrote:
veggieman001 wrote:
rdococ wrote:
It probably is. But I've come up with a way to rotate the camera.
Cool! How're you doin' it?
Actually pretty simple -- it just changes the X and Y position based on x-rotation and y-rotation values.
Sounds like how most scrolling scratch projects work.
Offline
zippynk wrote:
rdococ wrote:
veggieman001 wrote:
Cool! How're you doin' it?
Actually pretty simple -- it just changes the X and Y position based on x-rotation and y-rotation values.
Sounds like how most scrolling scratch projects work.
Yeah, quite like it.
Except that I (will) be adding something in the scripts that replaces the xrot and yrot with 0 if they are above 360 and with 359 if they are negative values.
Last edited by rdococ (2012-02-15 10:46:52)
Offline
rdococ wrote:
veggieman001 wrote:
rdococ wrote:
It probably is. But I've come up with a way to rotate the camera.
Cool! How're you doin' it?
Actually pretty simple -- it just changes the X and Y position based on x-rotation and y-rotation values.
Wouldn't that be translation, not rotation?
Offline
veggieman001 wrote:
rdococ wrote:
veggieman001 wrote:
Cool! How're you doin' it?Actually pretty simple -- it just changes the X and Y position based on x-rotation and y-rotation values.
Wouldn't that be translation, not rotation?
Yes, it is translation. But I will try to add a bit of distortion based on the visible x-position and y-position of an object according to the canvas "eye".
Offline
rdococ wrote:
veggieman001 wrote:
rdococ wrote:
Actually pretty simple -- it just changes the X and Y position based on x-rotation and y-rotation values.
Wouldn't that be translation, not rotation?
Yes, it is translation. But I will try to add a bit of distortion based on the visible x-position and y-position of an object according to the canvas "eye".
Hmm. Okay then.
Offline
How do we detect when a key is pressed in Firefox?
Offline
We need to stay as active as possible on this thread, please.
I just want to have fast replies.
Offline
Because I thought [we] could develop it together.
Offline
veggieman001 wrote:
rdococ wrote:
Just asking, how do you run a script repeatidly forever?
I think in Javascript you can use a while(true) loop or something to that effect.
When I do that, Javascript crashes.
How did RHY do it?
Offline
The javascript isn't working-- but Firebug reports no mistakes. What is the problem?
My theory: Firefox doesn't support key detection. But why did RHY's thing work?
Last edited by rdococ (2012-02-15 12:23:09)
Offline
It isn't working-- Javascript is being weird.
Offline
Perhaps this would be of interest to you? http://www.scratch.mit.edu/ext/youtube/?v=Q9BkDzHPf4I
Offline
rdococ, I can hep develop this. (so it is we)
Offline
Okay then...
Offline