Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,253 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: How do i pick up and carry a "box" and then set it down agian? [Re: Pappenheimer] #267793
05/26/09 09:32
05/26/09 09:32
Joined: Apr 2009
Posts: 298
Southern Oceans
KiwiBoy Offline
Member
KiwiBoy  Offline
Member

Joined: Apr 2009
Posts: 298
Southern Oceans
my.pan = your .pan; might help plus its offset value.
Maybe even sine could really help here as well
my.pan = your .pan - 50 * cos(my.pan);? Im not sure sorry.


Use the 'manual' Luke, the manual is your friend. 'Self reminder' smile

My WebPage
Re: How do i pick up and carry a "box" and then set it down agian? [Re: Pappenheimer] #267880
05/26/09 16:47
05/26/09 16:47
Joined: Mar 2006
Posts: 321
Norway
Eagelina Offline OP
Senior Member
Eagelina  Offline OP
Senior Member

Joined: Mar 2006
Posts: 321
Norway
How do I convert this to C-Lite?

DEFINE _full_hand flag8; //<----- A5 code

how do I write this in C_Lite code?


A6 and A7 Commercial
-------------------
Programmer always searching for more to learn and understand. smile
Re: How do i pick up and carry a "box" and then set it down agian? [Re: Eagelina] #267881
05/26/09 16:48
05/26/09 16:48
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Quote:
How do I convert this to C-Lite?

DEFINE _full_hand flag8; //<----- A5 code


Like this:
#define _full_hand FLAG8;

Re: How do i pick up and carry a "box" and then set it down agian? [Re: Pappenheimer] #267939
05/26/09 23:01
05/26/09 23:01
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

A long time ago I picked smile up this code from the forum.
Many thanks to the person who posted it....It's coming back.

Code:
function pick_drop ()
{
	wait (1);
	i_counter += 1; 
	if ((i_counter % 2) == 1)  
	{
		while (mouse_left == 1) //the object is selected with the mouse
		{
			vec_set (temp_m, vector(mouse_cursor.x,mouse_cursor.y,194)); // play with the z position
			vec_for_screen(temp_m, camera);
			vec_set (my.x,temp_m.x); // entity and camera are the same
			wait (1);
		}
	}
	vec_set (temp_m.x, my.x);
	my.z += 10; // (20) 
	
	c_move(my,nullvector,nullvector, IGNORE_MAPS| ACTIVATE_TRIGGER | IGNORE_CONTENT | USE_AABB);

	if (event_type != EVENT_TRIGGER)
	{
		my.z -= 10; // 
		i_counter += 1;
	}
}


I used it alot and it worked for me

Hope this helps smile

Ottawa

Re: How do i pick up and carry a "box" and then set it down agian? [Re: Ottawa] #268011
05/27/09 07:58
05/27/09 07:58
Joined: Mar 2006
Posts: 321
Norway
Eagelina Offline OP
Senior Member
Eagelina  Offline OP
Senior Member

Joined: Mar 2006
Posts: 321
Norway
@Ottava:
I have used similar code my self several times. And that works fine. But this kind of code uses the mouse to pick up and move the object. I whant to be able to us the player to do this. Because I dont whant to make the mouse pointer come out just to pick up something.....
I whant the player to be able to go to the box pick it up with the hands carry it to the selected point and set it down. When that happends the player gets its reward..... grin


A6 and A7 Commercial
-------------------
Programmer always searching for more to learn and understand. smile
Re: How do i pick up and carry a "box" and then set it down agian? [Re: Cowabanga] #268012
05/27/09 07:59
05/27/09 07:59
Joined: Mar 2006
Posts: 321
Norway
Eagelina Offline OP
Senior Member
Eagelina  Offline OP
Senior Member

Joined: Mar 2006
Posts: 321
Norway
Originally Posted By: Cowabanga
Quote:
How do I convert this to C-Lite?

DEFINE _full_hand flag8; //<----- A5 code


Like this:
#define _full_hand FLAG8;


yes that was it, thanks!


A6 and A7 Commercial
-------------------
Programmer always searching for more to learn and understand. smile
Re: How do i pick up and carry a "box" and then set it down agian? [Re: Pappenheimer] #268392
05/29/09 00:16
05/29/09 00:16
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

Are all your models (boxes), that you want to pick up, the same?

If so, you could add in MED a vertex in the middle,
the number would probably be the same and then you could
use vec_for_vertex.

Ottawa smile

Re: How do i pick up and carry a "box" and then set it down agian? [Re: Ottawa] #268433
05/29/09 08:28
05/29/09 08:28
Joined: Mar 2006
Posts: 321
Norway
Eagelina Offline OP
Senior Member
Eagelina  Offline OP
Senior Member

Joined: Mar 2006
Posts: 321
Norway
Yes I will try to do that, and yes everyone is almost the same.


A6 and A7 Commercial
-------------------
Programmer always searching for more to learn and understand. smile
Re: How do i pick up and carry a "box" and then set it down agian? [Re: Eagelina] #268436
05/29/09 08:36
05/29/09 08:36
Joined: Apr 2006
Posts: 624
DEEP 13
badapple Offline
User
badapple  Offline
User

Joined: Apr 2006
Posts: 624
DEEP 13
in case you are still in need , i also have a working demo of this on my site but is old a6

my site

its in the free wdl section

Re: How do i pick up and carry a "box" and then set it down agian? [Re: badapple] #268437
05/29/09 08:43
05/29/09 08:43
Joined: Mar 2006
Posts: 321
Norway
Eagelina Offline OP
Senior Member
Eagelina  Offline OP
Senior Member

Joined: Mar 2006
Posts: 321
Norway
Yes I have downloaded it, and are planning on work with it later today. I whant it to be in Lite-C so I may need help converting it.....


A6 and A7 Commercial
-------------------
Programmer always searching for more to learn and understand. smile
Page 2 of 2 1 2

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

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