Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Quad, VoroneTZ, 1 invisible), 862 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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 | 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