Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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 (Ayumi, alibaba), 704 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
lorikob361, LucasJoshua, Baklazhan, Hanky27, firatv
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Grabbing Edges -- Help Needed #332112
07/07/10 17:24
07/07/10 17:24
Joined: Jul 2010
Posts: 129
B
bk9iq Offline OP
Member
bk9iq  Offline OP
Member
B

Joined: Jul 2010
Posts: 129
Hello Everybody,
I just started using A7 Free Edition.. I learned some basics of lite-c .. I could write (with the help of the AUM) a good 3rd person type of movement ... However, I just wanna know how could I make the character grab edges of blocks when I jump toward. I searched most of the AUM's but couldn't find anything.. Any help please??

Re: Grabbing Edges -- Help Needed [Re: bk9iq] #332120
07/07/10 18:05
07/07/10 18:05
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
You need to work with an old zelda code, you can find it in Free Resources. It's in C-Script, but the climbing parts can be translated in to lite-c wink there are states used for climbing and so on, state called "movement_mode".


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Grabbing Edges -- Help Needed [Re: 3run] #332122
07/07/10 18:09
07/07/10 18:09
Joined: Jul 2010
Posts: 129
B
bk9iq Offline OP
Member
bk9iq  Offline OP
Member
B

Joined: Jul 2010
Posts: 129
Yes the old Zelda code is 1027 lines long ... I couldn't translate it into lite-c... but is the only way to grab edges gonna be by writing 1000 lines ?? I don't think so ... there gotta be another way...

Thanks for answering me 3run ... I also wanna thank u for the ladder code!! it was amazing...

Re: Grabbing Edges -- Help Needed [Re: bk9iq] #332124
07/07/10 18:15
07/07/10 18:15
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Thank you laugh I'm glad to hear that it was useful for you.
About the edge climb, no I don't mean that it'll be 1000 lines grin You need to search for changing "movement_mode". You'll find the edge climbing part wink


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Grabbing Edges -- Help Needed [Re: 3run] #332125
07/07/10 18:17
07/07/10 18:17
Joined: Jul 2010
Posts: 129
B
bk9iq Offline OP
Member
bk9iq  Offline OP
Member
B

Joined: Jul 2010
Posts: 129
I will try to do so and come back... Thanx again

Re: Grabbing Edges -- Help Needed [Re: bk9iq] #332129
07/07/10 18:51
07/07/10 18:51
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
Climbing codes are however complex; it is very well possible that you'll have a code piece of a thousand lines when you finished your movement code.

Re: Grabbing Edges -- Help Needed [Re: the_clown] #332136
07/07/10 19:18
07/07/10 19:18
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
You can have even more than thousand lines of code for all of your movement code! laugh But, there is no need to have thousand lines of code, just for a edge climbing code wink


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Grabbing Edges -- Help Needed [Re: 3run] #332139
07/07/10 19:38
07/07/10 19:38
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
True.

Re: Grabbing Edges -- Help Needed [Re: the_clown] #332163
07/07/10 20:49
07/07/10 20:49
Joined: Jul 2010
Posts: 129
B
bk9iq Offline OP
Member
bk9iq  Offline OP
Member
B

Joined: Jul 2010
Posts: 129
Now I was trying to figure this out but in Zelda Code I don't understand what is happening :
Quote:

IF (movement_mode == 2) { //pulling yourself up onto a ledge
my.z += 5 * time;
player_diff.x = 1;
player_diff.y = 0;
player_diff.z = 0;
ent_move(player_diff.x,nullvector);
vec_set(temp,my.x); //scan in front of player to see if there is a climbable wall
temp.x += 30 * cos(my.pan);
temp.y += 30 * sin(my.pan);
temp.z = my.z - player_feet_height; //set the value 32 to the distance to the models feet
trace_mode = ignore_me+ignore_sprites+ignore_models;
IF(trace(my.x,temp) == 0) {
movement_mode = 3;
vec_set(ladder_x.x,my.x);
}
// camera.z = player.z - sin(cam_zangle) * cam_height;
ent_cycle("walk",my.animdist);
my.animdist += 9 * time;
IF (my.animdist > 100) { my.animdist -= 100; }
center_check();
update_views();
}

now the first couple of lines are good but then how do we (SCAN) or (TRACE) in order to know that this is an edge?

Re: Grabbing Edges -- Help Needed [Re: bk9iq] #332164
07/07/10 20:52
07/07/10 20:52
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
I need to leave now, for an hour or something like that. When I'll be back, I'll try to help you bro wink


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Page 1 of 2 1 2

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