Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Martin_HH, TipmyPip), 1,279 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
squik, AemStones, LucasJoshua, Baklazhan, Hanky27
19060 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
[Free] Attach Items - Demo & Script #125945
04/24/07 01:47
04/24/07 01:47
Joined: Sep 2003
Posts: 281
Arkansas\USA
raiden Offline OP
Member
raiden  Offline OP
Member

Joined: Sep 2003
Posts: 281
Arkansas\USA
I wrote the script to use for multiple types of items. I also coded a behavior panel able to customize settings. In the behaviour panel, you can check to make the item spin before you pick it up, you can set a health variable, and you can tweak the x,y,z & pan,tilt,roll of the item.

Pros: The items correctly move with players vertex position and angles.
Cons: The items become passable upon picking up, so they can penetrate walls.

Demo and Script

There is a read me and screenshot about the behaviour panel in the folder. Just include objects.wdl in your script and start carrying stuff around.

Credits are always cool, hope this helps you out.

-raiden


"It doesn't matter if we win or lose, it's how we make the game."
--------------------
Links: 3DGS for Dummies
Re: [Free] Attach Items - Demo & Script [Re: raiden] #125946
04/24/07 07:41
04/24/07 07:41
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
Very nice code and demo, thanks for your contribution.
BTW, what the X/Y/Z offset and P/T/R offset does? how
to get those value?

Thanks again.

Re: [Free] Attach Items - Demo & Script [Re: vlau] #125947
04/24/07 11:47
04/24/07 11:47
Joined: Sep 2003
Posts: 281
Arkansas\USA
raiden Offline OP
Member
raiden  Offline OP
Member

Joined: Sep 2003
Posts: 281
Arkansas\USA
Glad you like it.

You can get to the offsets by right clicking on your object in wed and choosing Behaviour. You will see a menu come up where you can tweak the values to position the x,y,z or pan, tilt, roll. This allows you to adjust your object to your player specifically where you want it.

-raiden


"It doesn't matter if we win or lose, it's how we make the game."
--------------------
Links: 3DGS for Dummies
Re: [Free] Attach Items - Demo & Script [Re: raiden] #125948
04/24/07 11:58
04/24/07 11:58
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline

Expert
aztec  Offline

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
Ima big Fan of it
If it came up a bit earlier I could have continued my FPS
Regards
Aztec


Visit:
schwenkschuster-design.de
Re: [Free] Attach Items - Demo & Script [Re: aztec] #125949
04/24/07 13:32
04/24/07 13:32
Joined: Mar 2007
Posts: 261
Germany
Thracian Offline
Member
Thracian  Offline
Member

Joined: Mar 2007
Posts: 261
Germany
I really like it. Thank you very much.


------------------------

All programmers are playwrights and all computers are lousy actors.
Re: [Free] Attach Items - Demo & Script [Re: Thracian] #125950
04/25/07 01:02
04/25/07 01:02
Joined: Apr 2004
Posts: 516
USA
Trooper119 Offline
User
Trooper119  Offline
User

Joined: Apr 2004
Posts: 516
USA
Seems for a great bit of code, thanks a lot bud.


A clever person solves a problem.
A wise person avoids it.
--Einstein

Currently Codeing: Free Lite-C
Re: [Free] Attach Items - Demo & Script [Re: Trooper119] #125951
04/25/07 03:19
04/25/07 03:19
Joined: May 2005
Posts: 819
U.S.
Why_Do_I_Die Offline
Warned
Why_Do_I_Die  Offline
Warned

Joined: May 2005
Posts: 819
U.S.
thnx , looks awesome.

Re: [Free] Attach Items - Demo & Script [Re: raiden] #125952
05/11/07 03:11
05/11/07 03:11
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline

Expert
Blink  Offline

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
i am having a problem with this script. the item i attached the script to does nothing on the level, doesnt attach or anything and is not passable. i used the properties to change the attach vertex. what do i do?

Re: [Free] Attach Items - Demo & Script [Re: Blink] #125953
05/12/07 04:39
05/12/07 04:39
Joined: Sep 2003
Posts: 281
Arkansas\USA
raiden Offline OP
Member
raiden  Offline OP
Member

Joined: Sep 2003
Posts: 281
Arkansas\USA
The key thing is you must have your character that is picking up the object as the "player" entity, meaning that your player code must have:

player = me;

The carryItem action in the script you attach to your objects to be picked up by the player depends on this to update its position.

So make sure you character player code has the player=me; in its action, and then assign the carryItem action to the object you want to be picked up by your player, rebuild entities and your good to go.

Also in the demo folder there is a screenshot of the behavior panel so you know what it looks like before you call it up in wed.

Let me know if you have anymore problems.

-raiden


"It doesn't matter if we win or lose, it's how we make the game."
--------------------
Links: 3DGS for Dummies
Re: [Free] Attach Items - Demo & Script [Re: raiden] #125954
05/12/07 16:52
05/12/07 16:52
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline

Expert
Blink  Offline

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
well, thats the problem. i am using plbiped01. is there a way to modify the code to work with plBiped01? I have a great code that i use that is a modified plBiped code, I really didnt want to get a new code for player movement to use this awesome code.

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