Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 10/25/26 03:42
Chat Room for Zorro Programmers
by Haitao_Ren. 10/25/26 03:14
Trading Journey
by Haitao_Ren. 10/25/26 03:14
Algorithmic trading course with Zorro
by Haitao_Ren. 10/25/26 03:12
Zorro tutorial ideas?
by Haitao_Ren. 10/25/26 02:47
Zorro plugin for Hyperliquid.xyz
by mayarik. 10/24/26 09:14
Tradestation missing in table of contents
by AndrewAMD. 10/23/26 14:35
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (3run, TipmyPip, opm), 7,722 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Haitao_Ren, JimSimons, julienp, julienper, KelleyAbbey
19247 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