Allow changing model scale

User avatar
aldobr
Member
 
Posts: 316
Joined: Sun Nov 25, 2012 05:46

Allow changing model scale

by aldobr » Sun Dec 22, 2013 02:01

Allowing to increase or decrease its appearence in game.

Bounding box needs to be changed accordingly.

Viewpoint too (the camera render position) to match the current player size.
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Sun Dec 22, 2013 11:44

 

User avatar
stu
Member
 
Posts: 737
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11

by stu » Sun Dec 22, 2013 14:26

aldobr wrote:Allowing to increase or decrease its appearence in game.

Bounding box needs to be changed accordingly.

Viewpoint too (the camera render position) to match the current player size.


It is possible to change the size of a player's collision box but the only way to increase/decrease the player size is by replacing the player model.
Adjusting the camera viewpoint would be a very nice feature that I would also like to see included.



Not very helpful because if you decrease the scale this way the player floats above the ground, increase the scale and the
player's feet are stuck in the ground. We'd need something like a base level that can be adjusted to compensate.
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Sun Dec 22, 2013 17:25

stu wrote:


Not very helpful because if you decrease the scale this way the player floats above the ground, increase the scale and the
player's feet are stuck in the ground. We'd need something like a base level that can be adjusted to compensate.

Hm? Of course this solves only the first part of his problem.
 

User avatar
Tedypig
Member
 
Posts: 284
Joined: Tue Mar 05, 2013 12:33
IRC: Piggybear87
In-game: Piggybear

by Tedypig » Tue Dec 24, 2013 18:25

How about just adding a second model? character_small.x and if(potion,etc) is used then use character_small.x else use character.x. something along those lines. /me is not a coder, just an idea guy. lol.
01010100 01100101 01100100 01111001 01110000 01101001 01100111
 

thetoon
Member
 
Posts: 106
Joined: Tue Dec 11, 2012 12:55

by thetoon » Thu Dec 26, 2013 14:32

And why not a mushroom instead of a potion. Oh, wait...
 

User avatar
Linxx
Member
 
Posts: 401
Joined: Wed May 16, 2012 00:37

by Linxx » Thu Dec 26, 2013 19:21

thetoon wrote:And why not a mushroom instead of a potion. Oh, wait...

actually that's not a bad idea the spores from the mushroom could make the player "think the shrunk or got bigger" giving a random berserker effect or making them weaker :3 that'd be a nice hazard
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 3 guests

cron