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.

Carrying values

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

Carrying values

Post by chocolatepie33 »

I'm pretty sure I've asked this like a million times before, but never really got anything...

Is it possible to carry over values in maps, so, here's a real-world example:

1: WORK- get check (1), go to map 2 (intermap teleport)
2: BANK- get money ($500), lose check (need check from map1 to get money), go to map 3
3: STORE- buy wooden chests (50) for Pizza's games, lose $500 from map2, go to map 4
4: HOME- rest. go to map1, part 2.
Restart.

Kind of like inheritance in C++ with base classes and derived classes for you programmers out there, I guess.
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
daltonds1
Member
Member
Posts: 368
Joined: September 13th, 2010, 12:26 am
Name: Dalton
IRC Username: Daltonds1
Location: Tomball, Texas

Re: Carrying values

Post by daltonds1 »

Yes, but this is almost impossible with out a game saving system in 2.5 idk if your talking about 2.6 or not
chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: Carrying values

Post by chocolatepie33 »

I don't yet have 2.6, I'm getting it ASAP, but I would prefer both, only because of coding differences.
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
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: Carrying values

Post by arcones »

Chocolate, That's possible if you only have one scenario per map (I'm pretty sure). Say you can only get that one check. Then just code that check into the next map automatically. But I'm pretty sure that's it.
Image
Want a user bar like this one? PM Leo!
chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: Carrying values

Post by chocolatepie33 »

alright, but what if you get 49 chests instead of 50 and use the remaining money on a sandwich? It'd have a value of 49 chests, 1 sandwich, but if i did that, it'd be 50 chests.
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
Locked