I'm trying to figure out the best way to rotate "3D" images. Will someone please help me? If we create the code, it might cause a revolution of 3D projects in Scratch!
Download the costumes from here. Then, within Scratch, clear the solid background on all of them. This takes forever, and occasionally it will also take out part of the Sprite, depending on its color. (The trick is to draw a transparent line over the part(s) that get erased BEFORE you try to clear.)
I think that it's best to arrange these by direction, then by action, as follows:
Directions, in order:
N-NE-E-SE-S-SW-W-NW
Actions, in order:
Stopped
Running/Walking
Attacking/Shooting
Spelling
(I would probably leave out Paused and Talking, as they can be represented well enough by just Stopped.)
I have almost no clue about rotation script, except what I know from this project.
I know it needs certain variables, such as:
DirectionMod
ActionNum
CostumeCycle
DirectionMod is mostly self-explanatory. It finds the direction (to the nearest 45 degrees) and turns that into a number between 0 and 7.
ActionNum senses what keys are being pressed and turns that into some sort of number. I'm not quite sure how to use this in the programming.
CostumeCycle is used to scroll through the different costumes within each action.
The formula for determining the costume is something like this:
switch to costume (DirectionMod * #) + (formula for action) + CostumeCycle
Note: "#" represents the number of costumes in each direction, which will vary.
This is what I have, and if someone could help me here, it would be appreciated.
(Note: Do not quote this, as it is the original post and somewhat long. Just click "Post reply" at the top.)
Last edited by SmartIrishKid (2009-01-31 18:49:09)
Offline
You don't really rotate 3D images. You have separate images that show a picture at different angles.
Offline
like this (link to project), it took me a long time to figure out how to make the sprites costumes and how to make it point to the mouse pointer
Offline
dsdude10 wrote:
like this (link to project), it took me a long time to figure out how to make the sprites costumes and how to make it point to the mouse pointer
I didn't mean something that points to the mouse-pointer. I'm trying to make it arrow-key-based.
Offline
SmartIrishKid wrote:
dsdude10 wrote:
like this (link to project), it took me a long time to figure out how to make the sprites costumes and how to make it point to the mouse pointer
I didn't mean something that points to the mouse-pointer. I'm trying to make it arrow-key-based.
I don't quite see what you want. Are there any game you can name that shows what you want to make? ie, Mario 64, diablo.
Last edited by archmage (2008-11-05 09:39:50)
Offline
Archmage, you now runescape, I think he means like that. Being able to turn the camera so that you can see a character and scenery from different angles.
Just making sure, are the files 100% safe to download. I don't want any viruses
If they are, I would be very interested to look at this.
Offline
Dan01 wrote:
Archmage, you now runescape, I think he means like that. Being able to turn the camera so that you can see a character and scenery from different angles.
Just making sure, are the files 100% safe to download. I don't want any virusesIf they are, I would be very interested to look at this.
If he is asking to make a game like runescape or mario 64, that is absolutely impossible.
If he wants to make a 3D isometric game like diabo that would be possible.
Also, the files are just pictures which means no viruses.
Offline
archmage wrote:
Dan01 wrote:
Archmage, you now runescape, I think he means like that. Being able to turn the camera so that you can see a character and scenery from different angles.
Just making sure, are the files 100% safe to download. I don't want any virusesIf they are, I would be very interested to look at this.
If he is asking to make a game like runescape or mario 64, that is absolutely impossible.
If he wants to make a 3D isometric game like diabo that would be possible.
It's very hard and the file will probably be larger than 10 mb.
Last edited by jasb (2008-11-05 13:31:09)
Offline
jasb wrote:
archmage wrote:
Dan01 wrote:
Archmage, you now runescape, I think he means like that. Being able to turn the camera so that you can see a character and scenery from different angles.
Just making sure, are the files 100% safe to download. I don't want any virusesIf they are, I would be very interested to look at this.
If he is asking to make a game like runescape or mario 64, that is absolutely impossible.
If he wants to make a 3D isometric game like diabo that would be possible.It's very hard and the file will probably be larger than 10 mb.
It shouldn't be that big. Especially after you compress it.
Offline
archmage wrote:
jasb wrote:
archmage wrote:
If he is asking to make a game like runescape or mario 64, that is absolutely impossible.
If he wants to make a 3D isometric game like diabo that would be possible.It's very hard and the file will probably be larger than 10 mb.
It shouldn't be that big. Especially after you compress it.
Don't forget about the music. Projects would be boring without the music.
Offline
jasb wrote:
archmage wrote:
jasb wrote:
It's very hard and the file will probably be larger than 10 mb.It shouldn't be that big. Especially after you compress it.
Don't forget about the music. Projects would be boring without the music.
Some computers won't load projects with a lot of music on them.
Offline
archmage wrote:
SmartIrishKid wrote:
dsdude10 wrote:
like this (link to project), it took me a long time to figure out how to make the sprites costumes and how to make it point to the mouse pointer
I didn't mean something that points to the mouse-pointer. I'm trying to make it arrow-key-based.
I don't quite see what you want. Are there any game you can name that shows what you want to make? ie, Mario 64, diablo.
Just go to the Web site that I mentioned above. I have the costumes for Green Archer, and you can look at my project, which is as far as I have gotten. I was thinking about some kind of top-down scrolling game, but I will worry about the actual game once I know what the rotation scripts are.
Offline
I don't get why you don't just use the scripts from Mayhem's wondering knight project. It works great. You just need to set it up so that DirectionMod varaible changes when you press the arrow keys.
Offline
archmage wrote:
I don't get why you don't just use the scripts from Mayhem's wondering knight project. It works great. You just need to set it up so that DirectionMod varaible changes when you press the arrow keys.
His are a bit different from what I was looking for. I was thinking about a scrolling game, using the arrow keys.
Offline
And you can post ideas for the game itself at 3D Archer RPG Ideas.
Offline
So are you saying that you want something like this?
http://scratch.mit.edu/projects/archmage/313838
Offline
archmage wrote:
So are you saying that you want something like this?
http://scratch.mit.edu/projects/archmage/313838
Yeah, something like that. I was thinking of something a bit less like a car-race game, but this would work if it had to.
Offline
if you want basic rotation search full 3d enviroment it should be the secound result. or check my remake of it called 3d space. if i do the work i think i know how to make 3d objects and maby posably 3d enviroments. good luck looking.
Offline
Hold on...I'm working on the beta 0.75 (Sprite-test) version of the project.
Offline
SmartIrishKid wrote:
archmage wrote:
So are you saying that you want something like this?
http://scratch.mit.edu/projects/archmage/313838Yeah, something like that. I was thinking of something a bit less like a car-race game, but this would work if it had to.
I changed it. I think it is what you want now.
Offline
archmage wrote:
jasb wrote:
archmage wrote:
It shouldn't be that big. Especially after you compress it.Don't forget about the music. Projects would be boring without the music.
Some computers won't load projects with a lot of music on them.
ya if i play a game on my conputer it almost freazes and some times dose. some times i wish people would just quit putting music on games cause then i can't play them >
Offline
SmartIrishKid wrote:
I'm trying to figure out the best way to rotate "3D" images. Will someone please help me? If we create the code, it might cause a revolution of 3D projects in Scratch!
First, download the costumes from here. Then convert ALL of them to 256-color. This may take a while, so be prepared!
I think that it's best to arrange these by direction, then by action, as follows:Directions, in order:
N-NE-E-SE-S-SW-W-NW
Actions, in order:
Stopped
Running/Walking
Attacking/Shooting
Spelling
(I would probably leave out Paused and Talking, as they can be represented well enough by just Stopped.)I have almost no clue about rotation script, except what I know from this project.
I know it needs certain variables, such as:
DirectionMod
ActionNum
CostumeCycle
DirectionMod is mostly self-explanatory. It finds the direction (to the nearest 45 degrees) and turns that into a number between 0 and 7.
ActionNum senses what keys are being pressed and turns that into some sort of number. I'm not quite sure how to use this in the programming.
CostumeCycle is used to scroll through the different costumes within each action.
The formula for determining the costume is something like this:Code:
switch to costume (DirectionMod * #) + (formula for action) + CostumeCycleNote: "#" represents the number of costumes in each direction, which will vary.
This is what I have, and if someone could help me here, it would be appreciated.
http://scratch.mit.edu/projects/Dolfus555/205888
here look at this is this what your talking about?
Offline
awsomemaster wrote:
http://scratch.mit.edu/projects/Dolfus555/205888
Here, look at this, is this what you're talking about?
Not exactly.
Offline
Okay, so what I was mainly looking for was with the Green Archer sprite (using only Stopped, Walking, and Attack) in the four cardinal directions. If somebody could please just show me the scripts, I would make the rest of the game by myself.
Offline