Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

Help with keys

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
Locked
User avatar
tuppinator
Member
Member
Posts: 21
Joined: June 17th, 2010, 1:34 pm
Name: Tuppy

Help with keys

Post by tuppinator »

I made a map recently i thought it has turned out rather well the only issue I have is i have no idea how to make keys.
What im trying to accomplish is have the player collect all the keys by doing puzzles by jumping and such and once they have all the keys they are able to access the finish. I would love to know how to make keys and how to make a finish to the end of the level. Any help would be great. Thanks (anything about fps weapon creation would be nice too)
User avatar
GR1M
Support Team
Support Team
Posts: 1305
Joined: August 22nd, 2009, 4:35 pm
Name: Luke
IRC Username: Gr1m
Location: Texas
Contact:

Re: Help with keys

Post by GR1M »

This question has already been answered in many forms and fashion. Here’s one out of many resources viewtopic.php?f=15&t=1338&p=10797&hilit=key#p10797 In the future can you search the Tutorials and recourses for your next question.
Image
Want a user bar like this one? PM Leo
User avatar
tuppinator
Member
Member
Posts: 21
Joined: June 17th, 2010, 1:34 pm
Name: Tuppy

Re: Help with keys

Post by tuppinator »

I did nothing came up it was probably my computer acting up again though but thakyou
User avatar
GR1M
Support Team
Support Team
Posts: 1305
Joined: August 22nd, 2009, 4:35 pm
Name: Luke
IRC Username: Gr1m
Location: Texas
Contact:

Re: Help with keys

Post by GR1M »

Code: Select all

key1 = 0

    level_trigger_1 = [
       if (> $key1 0) [
          trigger 1 1
          echo "You unlock the door with the key."
       ] [
          trigger 1 0
          echo "The door is locked."
       ]
    ]
    level_trigger_2 = [
       key1 = (+ $key1 1)
       echo "You picked up a key."
    ]
Image
Want a user bar like this one? PM Leo
User avatar
tuppinator
Member
Member
Posts: 21
Joined: June 17th, 2010, 1:34 pm
Name: Tuppy

Re: Help with keys

Post by tuppinator »

My issue is how do i assign an object as a key and how do i put coding like this into the game. God i feel like such a noob
User avatar
DrChef
Member
Member
Posts: 60
Joined: February 19th, 2010, 5:30 pm
Name: Luis

Re: Help with keys

Post by DrChef »

add the code to the map's .cfg file in the my_stuff/packages/base folder
when you have the key, press "/" and make sure the model's 3rd attribute is set to 12 and the fourth to the trigger #
for the above code, you'd have the key set to:
i.e. entset mapmodel 277 353 12 2 0 0 0 0
and the door to:
entset mapmodel 277 110 11 1 0 0 0 0

Hope this helps :D
:D
User avatar
InHumanUnit
Member
Member
Posts: 1450
Joined: May 22nd, 2010, 7:23 am
Name: Ian, Haiku, I got alot ;)
Location: Toyko, Japan. Currently in Illonis, Round Lake in America for secret purposes
Contact:

Re: Help with keys

Post by InHumanUnit »

I understand nothing here. Math is another lanuage I swear.
Image
Image
Image
XEON BOX GAMES - XBG is a blast from the past of a pirate mast to a cars thats fast.
You dare challenge me to Halo:Reach? You must die!
User avatar
tuppinator
Member
Member
Posts: 21
Joined: June 17th, 2010, 1:34 pm
Name: Tuppy

Re: Help with keys

Post by tuppinator »

Actually i figured it out by myself X3 when i had no internets earlier today.
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Help with keys

Post by arcones »

InHumanUnit wrote:I understand nothing here. Math is another lanuage I swear.
tuppinator wrote:Actually i figured it out by myself X3 when i had no internets earlier today.
:D Once you get the hang of it, it's not to hard. It's only once you get to the big integer arithmetic stuff that confuses me :lol:

If, thens... :)
Image
Want a user bar like this one? PM Leo!
User avatar
InHumanUnit
Member
Member
Posts: 1450
Joined: May 22nd, 2010, 7:23 am
Name: Ian, Haiku, I got alot ;)
Location: Toyko, Japan. Currently in Illonis, Round Lake in America for secret purposes
Contact:

Re: Help with keys

Post by InHumanUnit »

In the world of manga, high benefits. In the world of game-making, high benefits. But for all them so much practice, like Impacto, or something.
Image
Image
Image
XEON BOX GAMES - XBG is a blast from the past of a pirate mast to a cars thats fast.
You dare challenge me to Halo:Reach? You must die!
Locked