Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 13,346 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
player problems #94511
10/14/06 17:24
10/14/06 17:24
Joined: Jun 2006
Posts: 60
Diceman Offline OP
Junior Member
Diceman  Offline OP
Junior Member

Joined: Jun 2006
Posts: 60
i dont want my player runnin up n down the terrain (runnin up mountains). how do i put limits on this?


OldSkoolHippHoppWillPrevailOnceAgain!
Re: player problems [Re: Diceman] #94512
10/25/06 00:25
10/25/06 00:25
Joined: Sep 2006
Posts: 32
S
swbluto Offline
Newbie
swbluto  Offline
Newbie
S

Joined: Sep 2006
Posts: 32
I've little experience with this, but if there's a certain height that you wouldn't want the player to pass on the mountain or hillside somewhere, then you could create an impassable invisible map or model entity(like a box or rectangular prism) around the ridges you wouldn't want the player to pass. You could also directly code it by detecting the slope of the hillside/mountain and restricting movement past a certain slope value but I wouldn't know how to determine the slope of the surface in 3dgs; I just know that, at least in the A5 template script, there was coding that detected the underlying slope value(or, rather, the perpendicular form of that, the normal vector) and that was used to determine force values for the player(to slow down the player while climbing up a hill, increase speed when falling down, etc.). So it's possible!


Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1