Gamestudio Links
Zorro Links
Newest Posts
zorro 64bit command line support
by jcl. 04/20/24 08:52
StartWeek not working as it should
by jcl. 04/20/24 08:38
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (7th_zorro, Aku_Aku, henrybane, flink, 1 invisible), 712 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Ledge Hanging [Re: Superku] #314859
03/11/10 16:50
03/11/10 16:50
Joined: Oct 2009
Posts: 60
T
Tman Offline OP
Junior Member
Tman  Offline OP
Junior Member
T

Joined: Oct 2009
Posts: 60
Yes I did and it may be something that I am doing but the tex_flag2 how do you set that up? Do you call the texture flag2?

Re: Ledge Hanging [Re: Superku] #314887
03/11/10 19:19
03/11/10 19:19
Joined: Oct 2009
Posts: 60
T
Tman Offline OP
Junior Member
Tman  Offline OP
Junior Member
T

Joined: Oct 2009
Posts: 60
Got it fixed now, it detects the correct wall or ledge and now I am going to having him just hanging around.

Thanks
SuperKu.


Code:
action shimmy_move()
{
	my.skill100= 1502;
		
}

function move_ledge()
{
	VECTOR wall_ahead[3];
	while(1)
	{
	  
     vec_set (wall_ahead.x, vector (15, 0, -20)); // play with 70 and -20
     vec_rotate (wall_ahead.x, my.pan);
     vec_add (wall_ahead.x, my.x);
     result = (c_trace(my.x,wall_ahead.x,IGNORE_PASSABLE |IGNORE_ME | SCAN_TEXTURE));
     if(result > 0 && you)
     {
     	if(you.skill100 == 1502 && HIT_TARGET)
     	{

     	draw_point3d(hit.x,vector(50,50,255),100,3);
     		draw_text("Wall Hit...",10,10,vector(50,50,255));
     		}
     	}
 
     wait(1);
     
   }
}



Re: Ledge Hanging [Re: Tman] #314889
03/11/10 19:28
03/11/10 19:28
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
SCAN_TEXTURE modifies tex_flag2, have a look at the manual.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Ledge Hanging [Re: Superku] #314966
03/12/10 14:30
03/12/10 14:30
Joined: Oct 2009
Posts: 60
T
Tman Offline OP
Junior Member
Tman  Offline OP
Junior Member
T

Joined: Oct 2009
Posts: 60
Will do, now another question for the forum I am trying to get him to stick to the wall piece any ideas?

Re: Ledge Hanging [Re: Tman] #314981
03/12/10 15:34
03/12/10 15:34
Joined: Nov 2008
Posts: 215
V
vertex Offline
Member
vertex  Offline
Member
V

Joined: Nov 2008
Posts: 215
http://www.dexsoft-games.com/games/dexon.html

Dexsoft has done this...probably in A6?? Perhaps you could appeal Dexsoft for help...

I would double check the downlaodable resources to see if any of the movement code there has it.
http://au.conitec.net/
Perhaps there is c-script code that can be adapted.

Good luck with it.

Re: Ledge Hanging [Re: vertex] #314991
03/12/10 16:31
03/12/10 16:31
Joined: Oct 2009
Posts: 60
T
Tman Offline OP
Junior Member
Tman  Offline OP
Junior Member
T

Joined: Oct 2009
Posts: 60
Thank you for this vertex. Here is my ordeal, I have the player set to whenever he hits the target or the wall it tells me hey I hit the wall now I need it to stick to the wall until I tell it to release the wall what is the best way to get it to go about sticking to the wall? I didn't see anything on the resources about it.

Thanks
Tman.

Last edited by Tman; 03/12/10 16:54.
Re: Ledge Hanging [Re: Tman] #315036
03/12/10 20:12
03/12/10 20:12
Joined: Oct 2009
Posts: 60
T
Tman Offline OP
Junior Member
Tman  Offline OP
Junior Member
T

Joined: Oct 2009
Posts: 60
Does anyone know of a way to clamp the player in the x position to an object?

Re: Ledge Hanging [Re: Superku] #315434
03/15/10 14:21
03/15/10 14:21
Joined: Oct 2009
Posts: 60
T
Tman Offline OP
Junior Member
Tman  Offline OP
Junior Member
T

Joined: Oct 2009
Posts: 60
Almost got just need to get it to stay on the ledge right now what I am doing is saying when I hit the target the postion of the wall is my current position, he sticks for awhile but then just releases, anyone has an idea why that happens?

Re: Ledge Hanging [Re: Superku] #315745
03/18/10 18:07
03/18/10 18:07
Joined: Oct 2009
Posts: 60
T
Tman Offline OP
Junior Member
Tman  Offline OP
Junior Member
T

Joined: Oct 2009
Posts: 60
So no one know's how to solve this issue?

Re: Ledge Hanging [Re: Tman] #316050
03/21/10 00:14
03/21/10 00:14
Joined: Oct 2009
Posts: 60
T
Tman Offline OP
Junior Member
Tman  Offline OP
Junior Member
T

Joined: Oct 2009
Posts: 60
Got it solved, I think. I have the player colliding and connecting to the platform, thanks for those who help me.

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