An idea of how to do it just popped up in my head last night. IT WORKED!
Offline
up, lot of scripts to tell you about!
Offline
well... as archmage pointed out, you need Z-mapping to make 3D games. So my 3D game on the website isn't 'true' 3D, but with z mapping, it is. For z mapping, all you need is a map! It is complicated to explain the 3D that I used in little 3D runaround, and is even harder to explain about z-mapping, because it takes a lot of scripts. Once I have finished the current game, I might be able to have the patience to explain. Or ou can download it, but, It is really hard to explain!
Offline
oh... the process. Well, I have always wanted to make 3D games, but then, suddenly an idea came to me, just as I got into the shower!
Offline
Well, here is the scripts for one of the trees in my game
<when green flag clicked>
<forever>
<if><key[ up arrow ]pressed?>
<change{ distance }by( -1
<if><key[ down arrow ]pressed?>
<change{ distance }by( 1
<if><key[ right arrow]pressed?>
<change{ real x }by( -1
<if><key[ left arrow ]pressed?>
<change{ real x }by( 1
Thats the main script, but there are more
<when green flag clicked>
<forever>
<set{ size }to( <size>
<when green flag clicked>
<forever>
<set{ size }to( (( 100 </> (( <{ distance }> </> 5 )) ))
<forever>
<say[ LOL! I forgot the rest!
Last edited by JoelP (2007-09-07 18:45:18)
Offline
Is it possible to create a 3d freely rotating polygon using this method?
Offline
no... this is the method that I used in the little 3D runaround. I am hoping to do that in my new game-if it works
Offline
To make it so it looks like youre walking towards something put this scripts on that
thing.<when green flag clicked><forever><if><key[UP]pressed?><change size by(+1
You should be able to figure out the rest for left, right, and down>>
Offline
<<TO MAKE MOVE RIGHT AND UP>>
--FORWARD--
<when green flag clicked>
<forever>
<if>
<key[ UP ]pressed?>
<change size by( +1
--RIGHT--
<when green flag clicked>
<forever>
<if>
<key[RIGHT]pressed?>
<change x by(+1
Offline
I also made a 3D simulator, but mine doesn't use the same scripts, even though they're similar. Go to http://scratch.mit.edu/projects/hobotraitor/204195 to see it. If anyone wants to work off of it that's fine, but if you do you should probably draw a new character and background because my drawings aren't too good (The only reason it doesn't look like real 3D is because I drew it off center.).
Offline
JoelP wrote:
Well, here is the scripts for one of the trees in my game
<when green flag clicked>
<forever>
<if><key[ up arrow ]pressed?>
<change{ distance }by( -1
<if><key[ down arrow ]pressed?>
<change{ distance }by( 1
<if><key[ right arrow]pressed?>
<change{ real x }by( -1
<if><key[ left arrow ]pressed?>
<change{ real x }by( 1
Thats the main script, but there are more
<when green flag clicked>
<forever>
<set{ size }to( <size>
<when green flag clicked>
<forever>
<set{ size }to( (( 100 </> (( <{ distance }> </> 5 )) ))
<forever>
<say[ LOL! I forgot the rest!
lol "set size to= size"
Offline
when green flag clicked>i' focusing on a 3D game,and to make a character turn around, I used scripts like:<when green flag clicked><set{spinX}to(0) <when green flag clicked><forever if><key[right arrow]pressed?><change{spinX}by(1) (opposite for left)
<when green flag clicked><forever if><{spinX}>=360<set{spinX}to(0)
and to make other sprites appear, i used something like <when green flag clicked> <forever if>spinX=180<show><go to x:(edge)y:(wherever)<forever if><key[right arrow]pressed?><glide( )secs to x
)y
)<key[left arrow]pressed?><glide( )secs to x
)y
)
Offline
I figured out an easier way. Doesn't involve fancy turning though, unfortunately. Unless yours doesn't either, I haven't checked it out.
Offline
Very clever, well done.
Offline
JSO wrote:
NATT44, please do not bump up threads that old. It's started in august 2007, that's two and a half years ago.
Wow... no wonder this is outdated.
Offline
This thread is so ancient, it's just begging to be closed! Yeah.... I think I'll do that.
Offline