In-game speed (again ;) )

User avatar
voxelproof
Member
 
Posts: 933
Joined: Sat Aug 05, 2017 08:13
Location: Europe

In-game speed (again ;) )

by voxelproof » Wed Nov 27, 2019 07:59

My question is: is there a way to alter player's walking speed in-game (of course I don't mean using running mode)? Is it doable via physics_override only or there's also another possibility?
Game is the essence of life; therefore every good game makes life better.
 

User avatar
Linuxdirk
Member
 
Posts: 2219
Joined: Wed Sep 17, 2014 11:21
Location: Germany
In-game: Linuxdirk
 

User avatar
voxelproof
Member
 
Posts: 933
Joined: Sat Aug 05, 2017 08:13
Location: Europe

Re: In-game speed (again ;) )

by voxelproof » Thu Nov 28, 2019 15:14

Linuxdirk wrote:It is. See "speed" description.

https://github.com/minetest/minetest/bl ... 5748-L5758


Thx. You mean 'add_player_velocity' isn't it?
Game is the essence of life; therefore every good game makes life better.
 

User avatar
Krock
Developer
 
Posts: 4409
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: In-game speed (again ;) )

by Krock » Thu Nov 28, 2019 18:32

voxelproof wrote:Thx. You mean 'add_player_velocity' isn't it?

add_player_velocity is temporary but set_physics_override or movement_speed_walk (minetest.conf) is eternal.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

User avatar
voxelproof
Member
 
Posts: 933
Joined: Sat Aug 05, 2017 08:13
Location: Europe

Re: In-game speed (again ;) )

by voxelproof » Thu Nov 28, 2019 19:14

Krock wrote:
voxelproof wrote:Thx. You mean 'add_player_velocity' isn't it?

add_player_velocity is temporary but set_physics_override or movement_speed_walk (minetest.conf) is eternal.


I think that temporary variant would probably better suit my needs. The idea is to make hangglider flight work independently of default player's walking speed and, moreover, of direction keys (WSAD) in general. So player's velocity should be changed only when he is flying; additionally the forward movement should proceed automatically when hangglider is activated. (Some experiments with turning Piezo's hangglider into wingsuit I've just made proved very promising, however better hardware is needed for the really satisfying experience.)
Game is the essence of life; therefore every good game makes life better.
 

Termos
Member
 
Posts: 260
Joined: Sun Dec 16, 2018 12:50

Re: In-game speed (again ;) )

by Termos » Fri Nov 29, 2019 11:21

voxelproof wrote:The idea is to make hangglider flight work independently of default player's walking speed and, moreover, of direction keys (WSAD) in general

That's easy if the player is attached to the glider, then the glider entity controls all movement and you don't need to worry about player physics at all.
 


Return to Modding Discussion



Who is online

Users browsing this forum: No registered users and 3 guests