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.

Making objects disappear and appear?

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
carter472
Member
Member
Posts: 14
Joined: June 18th, 2009, 1:34 am
Name: Adam

Making objects disappear and appear?

Post by carter472 »

I'm building a game with a couple of my friends using FPS.

We were wondering if we could make objects disappear if a certain action is done.

For example, let's say we were to make a treasure box. When we touch it, it would give us say, 20 Gold. I know how to trigger it to give us 20 Gold. But AFTER it gives us the 20 Gold, how do we make the treasure box disappear??

Its kinda like when you pick something up? The objects itself disappears from sight. How do we do that to other models, like boxes, or monsters?

And also, one more question. I saw the post about spawning monsters in RPG. My friends and I were wondering if we could spawn monsters in FPS??
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: Making objects disappear and appear?

Post by arcones »

Well it seems like you asked three questions (if there's more just keep posting ;) ) but I'll try to answer them as well as I can

1. The principle you're talking about is very similar to making a key or coin disappear.

Code: Select all

"on_start" = [
   money = 0
   pie = 0
   sword = 0
   treasure = 0
   ]

"level_trigger_1" = [ money = ( + $money 5 )
   echo "You got 5 moneys."
   ]


This is part of the shop script GoBologna made at it works for anything that you assign the Level trigger 1 to.
To make the treasure box disappear you have to assign the box' trigger type 12.
NOTE: Just change the money values to make it give you 20 gold ;)

2. What are you saying? Do you want monsters to disappear?

3. That I don't know. From what I've experience it's easier to make an RPG with RPG (no surprise :P ).

Here's the shop script link if you want it: Shop Script
Hope that helps Carter!

Arc :geek:
Image
Want a user bar like this one? PM Leo!
User avatar
Runescapedj
Member
Member
Posts: 1706
Joined: January 9th, 2010, 9:06 am
Name: Michiel
IRC Username: Sandboxdj
Location: Deventer, the Netherlands

Re: Making objects disappear and appear?

Post by Runescapedj »

2. After killing he means I think
3. Idk
Locked