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
1 registered members (AndrewAMD), 1,089 guests, and 2 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
Page 2 of 2 1 2
Re: Ledge grabbing [Re: Creepinbox] #127199
05/08/07 20:12
05/08/07 20:12
Joined: Dec 2005
Posts: 252
MyOwnKingdom
nipx Offline
Member
nipx  Offline
Member

Joined: Dec 2005
Posts: 252
MyOwnKingdom
I just got an idea that could work... but didnt test anything



concept:




Whenever you want to grab the edge you trace forward (TRACE 1) to check if you are standing at a wall.
If not trace downwards (TRACE 2) from where you traced to before, to check if there is a edge at all.
If so, then play your animation....


just a little hint, didnt test



nipx

Re: Ledge grabbing [Re: nipx] #127200
05/09/07 08:43
05/09/07 08:43
Joined: Apr 2006
Posts: 329
M
molotov Offline
Senior Member
molotov  Offline
Senior Member
M

Joined: Apr 2006
Posts: 329
Hey, maybe I can help. Because I spend some time understanding the Axys Minigame Bonanza code, and created my own ledge hanging based on it. At first the Axys Minigame Bonanza doesn't use invisible boxes of any kind, it uses trace like Nipx says. Secondly the Axys Minigame Bonanza code isn't really tied up in the rest, it just looks that way. Check out the section in Axys code that starts with;
IF (movement_mode == 10){
this section is the code that makes the ledge work, only thing you have to ad is the activation code part, you can find that by searching for "movement_mode = 10;"

But it is really important that you learn to read the codes. Hope this helps.
Have a nice day, Molotov.

Re: Ledge grabbing [Re: quasarchangel] #127201
05/09/07 11:30
05/09/07 11:30
Joined: Jan 2007
Posts: 59
C
Creepinbox Offline OP
Junior Member
Creepinbox  Offline OP
Junior Member
C

Joined: Jan 2007
Posts: 59
hey thanks ill check it out.

Last edited by Creepinbox; 05/09/07 11:31.
Re: Ledge grabbing [Re: Creepinbox] #127202
05/09/07 11:37
05/09/07 11:37
Joined: Jan 2007
Posts: 59
C
Creepinbox Offline OP
Junior Member
Creepinbox  Offline OP
Junior Member
C

Joined: Jan 2007
Posts: 59
umm .. there is no movment_mode = 10;

Re: Ledge grabbing [Re: Creepinbox] #127203
05/09/07 11:54
05/09/07 11:54
Joined: Apr 2006
Posts: 329
M
molotov Offline
Senior Member
molotov  Offline
Senior Member
M

Joined: Apr 2006
Posts: 329
That's strange because there is in my downloaded version of Axys Minigame Bonanza.

Re: Ledge grabbing [Re: molotov] #127204
05/09/07 14:09
05/09/07 14:09
Joined: Nov 2004
Posts: 862
Australia
DavidLancaster Offline
User
DavidLancaster  Offline
User

Joined: Nov 2004
Posts: 862
Australia
It might be another number for movement_code. It's complex but it's in there. And there is no easy way to do it. Axys code is not user friendly. You just need to set up a movement state, a normal moving mode and a ledge grabbing movement mode, what one is selected is based on a variable like 'movement_mode'.

And if you don't have the experience with coding implementing something like this is kinda tricky. You have to do several trace instructions to get it to work correctly in every position without giving you bugs. I would do those traces, keep tracing in front of the players head until you hit something, once you hit something you then need to do a few more traces to make sure there is a ledge above you. Use the original hit point of your original trace, trace say 150 quants above it down to the same z position, but a little more forward from where it hit, if that trace returns a good sized number you know it's a ledge.

I then, in the same frame, place the player at that position and do a gravity trace with use_box to make sure the player isn't stuck in anything, I then return the player to it's original position and change the movement mode accordingly.

It's easy to set up something basic, it's hard to get something to work without bugs and works consistently in all situations. It's even harder to sync an animation with ledge grabbing. Once animations are involved and you need to sync it with the movement, it gets tougher...

Re: Ledge grabbing [Re: DavidLancaster] #127205
05/09/07 14:10
05/09/07 14:10
Joined: Nov 2004
Posts: 862
Australia
DavidLancaster Offline
User
DavidLancaster  Offline
User

Joined: Nov 2004
Posts: 862
Australia
This code isn't the easiest to read. Check it out if you're interested. It's on Acknex Resource:

http://www.coniserver.net/coni_users/web_users/pirvu/au/scripts/zeldacode.zip

Re: Ledge grabbing [Re: DavidLancaster] #127206
05/09/07 16:29
05/09/07 16:29
Joined: Jan 2007
Posts: 59
C
Creepinbox Offline OP
Junior Member
Creepinbox  Offline OP
Junior Member
C

Joined: Jan 2007
Posts: 59
tell me david.. do you write your code that clean from the start or do you have to clean it up when all works well ?

Re: Ledge grabbing [Re: Creepinbox] #127207
05/10/07 03:31
05/10/07 03:31
Joined: Nov 2004
Posts: 862
Australia
DavidLancaster Offline
User
DavidLancaster  Offline
User

Joined: Nov 2004
Posts: 862
Australia
Clean code? What code are you referring to? I never thought my code was clean I'm getting better at writing cleaner code, I still end up doing it messily when I start working on things before I think about the bigger picture.

Page 2 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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