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.

Sound During Teleport to New Map

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.
chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: Sound During Teleport to New Map

Post by chocolatepie33 »

*slaps self*

what is with me missing the real obvious stuff? first the rpg thing involving hirato and newui, and now this...

yeah, the separate entity part might be your best bet.
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
UCLA.RES.
Member
Member
Posts: 18
Joined: August 23rd, 2011, 1:11 pm
Name: Daniel

Re: Sound During Teleport to New Map

Post by UCLA.RES. »

Thx for the input Mike. The thing is I can't make it as two separate entities. Maybe if I explain things a bit better. Basically, we have a setup in such a manner so that when a sound is made, a reward is delivered. But we only want rewards given when the player activates the teloporter. I have done separate sound entities but the problem is that if the the player is stuck/stays in the sound entity radius, it will constantly trigger the reward delivery, which is not desired. Even if I could get the sound to work once,for a specified period of time, it wouldnt matter because it needs to be specifically during the teloport. This is really important to me. I looked at Kid_Matthew's contest wining map, but I guess somthing went wrong because I couldn't find a teloport nor sound entity. This is very important and so If anyone could help me out, it would be greatly appreciated.

I think hirato understood this when he said I need to do a "/sound", but as he is so advanced, I couldn't follow. If anyone could suggest how to do his method it would be greatly appreciated.
:D
User avatar
Sircameron
Member
Member
Posts: 62
Joined: March 6th, 2012, 9:13 pm
Name: Cameron
Location: Indiana

Re: Sound During Teleport to New Map

Post by Sircameron »

Couldnt you just use the sound then use the "sleep #" between sound and the teleport?
User avatar
Mike
Administrator
Administrator
Posts: 871
Joined: May 24th, 2009, 12:52 pm

Re: Sound During Teleport to New Map

Post by Mike »

Sign up for our Newsletter to keep up to date with the Sandbox news!
We also have a facebook page, facebook group, myspace page and a twitter page[/b][/color]!
User avatar
kddekadenz
Member
Member
Posts: 423
Joined: July 17th, 2011, 11:02 am
Name: kdd
Contact:

Re: Sound During Teleport to New Map

Post by kddekadenz »

Or do it like this:

Code: Select all

beep = (registersound "chaze/select" 255)
level_trigger_1 = [sound $beep ; listofmaps = [HT_left HT_right] ; sleep 1000 [map (at $listofmaps (rnd (listlen $listofmaps)))]]
This is a very small change, but it works for me this way (using 2.7).
Kelgar is an advanced RPG beeing developed in Sandbox
UCLA.RES.
Member
Member
Posts: 18
Joined: August 23rd, 2011, 1:11 pm
Name: Daniel

Re: Sound During Teleport to New Map

Post by UCLA.RES. »

kddekadenz! You did it! Thanks so much!
Locked