Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Making 3rd Person 3D game into a first-person one.
- lightedblox
- Scratcher
73 posts
Making 3rd Person 3D game into a first-person one.
https://scratch.mit.edu/projects/235786326/
I just cant, for the life of me make it first person. I've tried everything, so can someone smarter than me please help.
If you want to, you can remix it but you could just suggest to me what I should do.
I just cant, for the life of me make it first person. I've tried everything, so can someone smarter than me please help.
If you want to, you can remix it but you could just suggest to me what I should do.
- DerpyHead0
- Scratcher
1000+ posts
Making 3rd Person 3D game into a first-person one.
just so you know, i'm pretty sure any changes would have to be made to the goto custom block.
messing around to figure something out right now.
messing around to figure something out right now.
when I start as a clone
delete this clone
- DerpyHead0
- Scratcher
1000+ posts
Making 3rd Person 3D game into a first-person one.
ok just realized something, the entire perspective is faked. in reality, the point where objects become 0 size is infinetly far away. yet here, you can easily get objects past the vanishing point and give them a negative size.
you're going to have to probably redo a ton of the 3d engine, because this is a mess.
a good start is
this will make an object in 3d space appear with correct perspective. the only issue is if z goes negative, which then you need something called vector cross product i believe. i never got that far, so sadly i can't help you at this point.\
EDIT: if you do get this done, could you tell me some things on how you did it? some of this i don't think i could ever figure out.
you're going to have to probably redo a ton of the 3d engine, because this is a mess.
a good start is
go to x: ((x)/(z)) y: ((y)/(z))
this will make an object in 3d space appear with correct perspective. the only issue is if z goes negative, which then you need something called vector cross product i believe. i never got that far, so sadly i can't help you at this point.\
EDIT: if you do get this done, could you tell me some things on how you did it? some of this i don't think i could ever figure out.
Last edited by DerpyHead0 (July 9, 2018 19:35:06)
when I start as a clone
delete this clone
- DerpyHead0
- Scratcher
1000+ posts
Making 3rd Person 3D game into a first-person one.
ok nvm just do this in your goto script:
any point behind the camera will be in the opposite position, but that's about it.
still, i have no idea what vector cross product is, i just heard that it solves this problem.
EDIT: if you want a proper 3d perspective in 3rd person, do this:
also clip a bit further back, not just for 3rd person. you can see the triangles dissapear.
set [tS v] to ((0) - ((200)/(3DZ)))
any point behind the camera will be in the opposite position, but that's about it.
still, i have no idea what vector cross product is, i just heard that it solves this problem.
EDIT: if you want a proper 3d perspective in 3rd person, do this:
set [tS v] to ((0) - ((200)/((3DZ)-(4))))
also clip a bit further back, not just for 3rd person. you can see the triangles dissapear.
Last edited by DerpyHead0 (July 9, 2018 23:02:26)
when I start as a clone
delete this clone
- juju5347
- Scratcher
3 posts
Making 3rd Person 3D game into a first-person one.
set [ dfnjgjvkdfngdsfg] to []
- HyperDash928
- Scratcher
8 posts
Making 3rd Person 3D game into a first-person one.
please don't necro.
set to
when green flag clicked
forever
start making cool idea
take a break
have new cool idea
forget about old project
end
- Neobit64
- Scratcher
2 posts
Making 3rd Person 3D game into a first-person one.
when green flag clicked
move (1) steps
set [awakeness v] to [0]
- Neobit64
- Scratcher
2 posts
Making 3rd Person 3D game into a first-person one.
when I receive [work on game v]
change [work v] by (game)
set [new project v] to [bugged]
- 8ninja8
- Scratcher
5 posts
Making 3rd Person 3D game into a first-person one.
when green flag clicked
forever
turn cw (1) degrees
end
- Fjinx-Bs
- Scratcher
1 post
Making 3rd Person 3D game into a first-person one.
when green flag clicked
forever
set [ iDIOT] to []
end
- sargonk
- Scratcher
2 posts
Making 3rd Person 3D game into a first-person one.
I'm trying to make my player visible and I cant figure out how can some one help me
- sargonk
- Scratcher
2 posts
Making 3rd Person 3D game into a first-person one.
/ fortnight perspective
- MineTurte
- Scratcher
500+ posts
Making 3rd Person 3D game into a first-person one.
If you don't know already what you are doing is called / fortnight perspective necroposting. It's when you post on a really old topic and don't provide helpful feedback. Please next time refrain from this as it clogs up the forums and is effectively spamming. Thanks!
15+ (not revealing age) girl. Pronouns are she/her.
Host of The Pi Counsel. Comment in studio to join.
Front-end web developer & software programmer. I use JS, HTML, & CSS. Learning python3 right now.
Grammar fanatic as well
If I helped you out consider following Juni-Bug!
Select this + shift + down arrow = view rest of signature
This is JuniperActias. AKA Moth mommy.
Signature gradients here
If you found this secret; reply with ‘uwu’ with absolutely no context
Host of The Pi Counsel. Comment in studio to join.
Front-end web developer & software programmer. I use JS, HTML, & CSS. Learning python3 right now.
Grammar fanatic as well
If I helped you out consider following Juni-Bug!
Select this + shift + down arrow = view rest of signature
This is JuniperActias. AKA Moth mommy.
Signature gradients here
If you found this secret; reply with ‘uwu’ with absolutely no context
- Discussion Forums
- » Help with Scripts
- » Making 3rd Person 3D game into a first-person one.