insert combudemosho...
 
Notifications
Clear all

insert combudemoshop in to combudemo

3 Posts
2 Users
0 Reactions
774 Views
(@mbanys)
Posts: 3
Active Member
Topic starter
 

hello, what's best way to integrate combushop in to combudemo or how to do it, thanks.

ps: in shop scene coins doesn't get less when pressing any item button just quantity adds ,

another thing in mysql  cb_account table "LastLoginIp" and "LastLoginDate" rows always NULL.

 
Posted : 14/02/2016 9:47 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

hello, what's best way to integrate combushop in to combudemo or how to do it, thanks.
ps: in shop scene coins doesn't get less when pressing any item button just quantity adds

You should export the canvas "Menu" from shop demo to the other scene (give it a different name because there's already a "Menu" canvas there), then add a new button in the combudemo canvas under "Menu" like the other "Button*" there and create the functions to load inventory and handle purchasing like in CombuDemoShop script. About the coins, if you take a look at the demo script there's no code to decrease the coins but it's just an example and not a full working shop (anyway of course it should decrease the coins inside the function BuyItem and precisely inside the callback passed to newItem.Update at line 160).

another thing in mysql  cb_account table "LastLoginIp" and "LastLoginDate" rows always NULL.

These fields in CB_Account are no more used, they have been moved to CB_Session since now you can have more than one valid session (so your players can play from both iOS and Android at the same time, for example).

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 14/02/2016 10:48 pm
(@mbanys)
Posts: 3
Active Member
Topic starter
 

Ok Thanks

 
Posted : 17/02/2016 9:37 pm
Share: