Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Ayumi), 1,405 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
c_move and bounding box #394902
02/17/12 15:06
02/17/12 15:06
Joined: Sep 2003
Posts: 353
Mahonroy Offline OP
Senior Member
Mahonroy  Offline OP
Senior Member

Joined: Sep 2003
Posts: 353
Hello,
I am using a simple movement script for the player (FPS), which just involves a trace to get the floor, and a c_move to go in a direction.
I noticed that the bounding boxes for other characters in the game were not accurate so I did a c_setminmax, which made an almost good bounding box for them (still a bit large though), so I then manually set the my.min_x,max_x,min_y,max_y, etc. to get the perfect size bounding box for the character. The only problem is that when I do this, if I walk towards the characters at an angle, and hit the corner of their bounding box, I climb up ontop of the player. If I don't mess with the min and max bounding, then this doesn't happen.
Is there something that I am missing here? Any help is appreciated, thanks!


NATIO Released! Check it out at http://mahonroy.home.comcast.net/natio.htm -Matt AMD 1.2 Ghz Thunderbird 512 Meg Ram GeForce 2 Ultra 64 Meg DDR Using A5 Professional
Re: c_move and bounding box [Re: Mahonroy] #395111
02/19/12 22:13
02/19/12 22:13
Joined: Jan 2012
Posts: 55
K
kmega99 Offline
Junior Member
kmega99  Offline
Junior Member
K

Joined: Jan 2012
Posts: 55
Even though I'm still new grin , I can offer advice on how I would do it.

I would try writing an event function that would just stop movement if player has collided with another entity with the same flag (lets say flag3).


Gamestudio download | chip programmers | 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