Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
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 (AndrewAMD, Ayumi), 838 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 1 of 2 1 2
Collision and Slopes #368221
04/22/11 22:10
04/22/11 22:10
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292
Can you please,

Tell me, give me directions or point me a tutotial on

how can i make the player detect a box and not go over it
and how can i stop player climbing models or terrain at a
certain degree

in c-script please.

I can post the code if needed.

Code with level:

http://www.2shared.com/file/CEYepMUJ/Devils.html

Thanks

Last edited by Mythran; 04/23/11 00:47.
Re: Collision and Slopes [Re: Mythran] #368227
04/23/11 00:07
04/23/11 00:07
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Most probably you have to provide the code, because most of the people who can help you in this case are used to Lite-C.

Re: Collision and Slopes [Re: Pappenheimer] #368329
04/24/11 09:38
04/24/11 09:38
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292
Thank you all.

I managed to fix it laugh

Re: Collision and Slopes [Re: Mythran] #368330
04/24/11 09:40
04/24/11 09:40
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Hm, may be you could share it with us? So, that way you could help a lot of users.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Collision and Slopes [Re: 3run] #368333
04/24/11 09:54
04/24/11 09:54
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292
So i posted another doubt of mine in the tutorials.

It's the Jump Specs,

If anyone can help...

Thanks

3run It has all to do with gravity... nothing more.
Oh and defenitly not using c_move!

Re: Collision and Slopes [Re: Mythran] #368335
04/24/11 10:01
04/24/11 10:01
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Any way, could you post it please?


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Collision and Slopes [Re: 3run] #368336
04/24/11 10:20
04/24/11 10:20
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292
Yes after i do some more changes.

And i'll post it because it was only possible by some guys from the forum
not directly to me, but because they made some codes that i could
take pieces x)

OH! and also after i post a small level and you guys say "I love it!!!!" tongue

3run can you please help me or give me directions on my Tutorials post?

Re: Collision and Slopes [Re: Mythran] #368341
04/24/11 11:15
04/24/11 11:15
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292
Ok so after an extensive test i found some major bugs.

The player collision againts the models is well done.
Now for detecting them under the feet its sooooo bugy! :\

Only after fixing this will i make the level and then post it!

Sorry :s

So the Tuts post is up again.

Please help!

Re: Collision and Slopes [Re: Mythran] #368366
04/24/11 17:09
04/24/11 17:09
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
All tutorials I know are in AUM, workshops. Those are best to start.
Some tips for detecting models under player's feet:
* use in c_trace USE_POLYGON flag
* set POLYGON flag for models


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Collision and Slopes [Re: 3run] #370565
05/14/11 01:59
05/14/11 01:59
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292
Sorry to bring this back,

I'm having a slight big problem.

I've been reading in other posts about bouncing...
And after a couple hours between aum manual posts a scripting i found i got nowhere near what i wanted.

Can someone please tell me how to make a player come back a few steps when he
runs into a wall?

vec_for_angle didnt help at all
player1.x -= 4; this works sometimes

and the player most of the time and i mean something like 98& of the times
doesnt detect the impact shocked

[code]
function bounce_player()
{
if(event_type == EVENT_IMPACT || event_type == EVENT_ENTITY)
{
player1.x -= 4;
ent_animate(player1,"knockdown",player1.animate,anm_cycle);
player1.animate += 5 * time_step;
player1.animate %= 100;
//you.health -= 1;
wait(1);
}
}

action wall()
{
my.ENABLE_ENTITY = on; // make entity sensitive for block and entity collision
my.ENABLE_IMPACT = on;
my.ENABLE_BLOCK = on;
my.event = bounce_player;
}
[\code]

Thanks

Page 1 of 2 1 2

Moderated by  adoado, checkbutton, mk_1, Perro 

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