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,791 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
Treasure chest action #237997
11/24/08 00:43
11/24/08 00:43
Joined: Nov 2008
Posts: 44
United States
Dante_Scott Offline OP
Newbie
Dante_Scott  Offline OP
Newbie

Joined: Nov 2008
Posts: 44
United States
-Will somebody please give me a Trasure chest action code. So that I can add a treasure chest that you can open to my level.

-I want it to Be like the door action on the old A5 template.

Best regards to all,

Dante

Re: Treasure chest action [Re: Dante_Scott] #238261
11/25/08 23:50
11/25/08 23:50
Joined: Jul 2007
Posts: 48
M
MattyTheG Offline
Newbie
MattyTheG  Offline
Newbie
M

Joined: Jul 2007
Posts: 48
I feel bad since no one helped you, so even though I'm not really that pro yet I will give it a shot.

For starters, most people here probably won't simply write a code for you, as the point of the forums is to learn.

I would try to write something on my own first and then when you get errors, ask for more specific help. Anyway I will try to give you a basic outline of what I would do and hope that you will go from there, I hope no one thinks I am harsh, not too mention I don't really know the hard code for it, just ideas.

For starters make sure that you have a model of a treasure chest, and that it has an animation to play when it is opened. Secondly I would assign an action to the treasure chest that constantly uses a trace or scan function to see if the player entity is within a certain range. Then if the player is within your desired range, wait for a specific keystroke, then play the open animation. After that you could also have an ent_create to load a sprite of bubbles or a coin or whatever.

Hope that gets you in the right direction.

Re: Treasure chest action [Re: MattyTheG] #238388
11/27/08 00:11
11/27/08 00:11
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
give more info other than
Quote:
Will somebody please give me a Trasure chest action code


is this a model with anims or an object that part of simply needs rotating?


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