Bootfit's Forum Posts

  • It would be best to reference the original value though, rather than the string version.

    Yeah I did think it might be best to change the string to a number value first. How would I go about this?

    Thanks for your help

  • I have a number value (Cost) that's drawn from an array and brought into a text field that I then compare with a Global number (BankUniversal).

    System > BankUniversal = Cost.Text etc... works fine.

    But, if I want to have an action take place that relies on BankUniversal = Cost.Text -10 I get the following error:

    So how do I write it so that I can compare BankUniversal with Cost.Text -10

    Thanks all

  • Hello C2 folks, posted this in C3 board also...

    OK - I've been slowly chugging through this and have managed to install (I think) the social elements needed for PhoneGap.

    I now need to connect the social button in my game to activate the code etc. So how do I implement those line of code with the Social Share button in my game?

    The plugin page here - https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin, supplies the following:

    <button onclick="window.plugins.socialsharing.share('Message only')">message only</button>
    
    <button onclick="window.plugins.socialsharing.share('Message and subject', 'The subject')">message and subject</button>
    
    <button onclick="window.plugins.socialsharing.share(null, null, null, 'http://www.x-services.nl')">link only</button>
    
    <button onclick="window.plugins.socialsharing.share('Message and link', null, null, 'http://www.x-services.nl')">message and link</button>
    
    <button onclick="window.plugins.socialsharing.share(null, null, 'https://www.google.nl/images/srpr/logo4w.png', null)">image only</button>
    
    // Beware: passing a base64 file as 'data:' is not supported on Android 2.x: https://code.google.com/p/android/issues/detail?id=7901#c43
    // Hint: when sharing a base64 encoded file on Android you can set the filename by passing it as the subject (second param)
    <button onclick="window.plugins.socialsharing.share(null, 'Android filename', 'data:image/png;base64,R0lGODlhDAAMALMBAP8AAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAUKAAEALAAAAAAMAAwAQAQZMMhJK7iY4p3nlZ8XgmNlnibXdVqolmhcRQA7', null)">base64 image only</button>
    
    // Hint: you can share multiple files by using an array as thirds param: ['file 1','file 2', ..], but beware of this Android Kitkat Facebook issue: [#164]
    <button onclick="window.plugins.socialsharing.share('Message and image', null, 'https://www.google.nl/images/srpr/logo4w.png', null)">message and image</button>
    
    <button onclick="window.plugins.socialsharing.share('Message, image and link', null, 'https://www.google.nl/images/srpr/logo4w.png', 'http://www.x-services.nl')">message, image and link</button>
    
    <button onclick="window.plugins.socialsharing.share('Message, subject, image and link', 'The subject', 'https://www.google.nl/images/srpr/logo4w.png', 'http://www.x-services.nl')">message, subject, image and link</button>
    [/code:20lmtzgf]
    
    [b]FACEBOOK[/b]
    [code:20lmtzgf]
    <button onclick="window.plugins.socialsharing.shareViaFacebook('Message via Facebook', null /* img */, null /* url */, function() {console.log('share ok')}, function(errormsg){alert(errormsg)})">msg via Facebook (with errcallback)</button>
    [/code:20lmtzgf]
    
    [b]TWITTER[/b]
    [code:20lmtzgf]
    <!-- unlike most apps Twitter doesn't like it when you use an array to pass multiple files as the second param -->
    <button onclick="window.plugins.socialsharing.shareViaTwitter('Message via Twitter')">message via Twitter</button>
    <button onclick="window.plugins.socialsharing.shareViaTwitter('Message and link via Twitter', null /* img */, 'http://www.x-services.nl')">msg and link via Twitter</button>
    [/code:20lmtzgf]
    
    Thanks all
  • Wow! Amazing thank you. Exactly what I was after - I appreciate the capx.

    My product images will all be separate sprites so I'll look into how to bring in individual sprite objects as opposed to animation frames.

    Thank you

  • OK - I've been slowly chugging through this and have managed to install (I think) the social elements needed for PhoneGap.

    I now need to connect the social button in my game to activate the code etc. So how do I implement those line of code with the Social Share button in my game?

    The plugin page here - https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin, supplies the following:

    <button onclick="window.plugins.socialsharing.share('Message only')">message only</button>
    
    <button onclick="window.plugins.socialsharing.share('Message and subject', 'The subject')">message and subject</button>
    
    <button onclick="window.plugins.socialsharing.share(null, null, null, 'http://www.x-services.nl')">link only</button>
    
    <button onclick="window.plugins.socialsharing.share('Message and link', null, null, 'http://www.x-services.nl')">message and link</button>
    
    <button onclick="window.plugins.socialsharing.share(null, null, 'https://www.google.nl/images/srpr/logo4w.png', null)">image only</button>
    
    // Beware: passing a base64 file as 'data:' is not supported on Android 2.x: https://code.google.com/p/android/issues/detail?id=7901#c43
    // Hint: when sharing a base64 encoded file on Android you can set the filename by passing it as the subject (second param)
    <button onclick="window.plugins.socialsharing.share(null, 'Android filename', 'data:image/png;base64,R0lGODlhDAAMALMBAP8AAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAUKAAEALAAAAAAMAAwAQAQZMMhJK7iY4p3nlZ8XgmNlnibXdVqolmhcRQA7', null)">base64 image only</button>
    
    // Hint: you can share multiple files by using an array as thirds param: ['file 1','file 2', ..], but beware of this Android Kitkat Facebook issue: [#164]
    <button onclick="window.plugins.socialsharing.share('Message and image', null, 'https://www.google.nl/images/srpr/logo4w.png', null)">message and image</button>
    
    <button onclick="window.plugins.socialsharing.share('Message, image and link', null, 'https://www.google.nl/images/srpr/logo4w.png', 'http://www.x-services.nl')">message, image and link</button>
    
    <button onclick="window.plugins.socialsharing.share('Message, subject, image and link', 'The subject', 'https://www.google.nl/images/srpr/logo4w.png', 'http://www.x-services.nl')">message, subject, image and link</button>
    [/code:20pd2ib3]
    
    [b]FACEBOOK[/b]
    [code:20pd2ib3]
    <button onclick="window.plugins.socialsharing.shareViaFacebook('Message via Facebook', null /* img */, null /* url */, function() {console.log('share ok')}, function(errormsg){alert(errormsg)})">msg via Facebook (with errcallback)</button>
    [/code:20pd2ib3]
    
    [b]TWITTER[/b]
    [code:20pd2ib3]
    <!-- unlike most apps Twitter doesn't like it when you use an array to pass multiple files as the second param -->
    <button onclick="window.plugins.socialsharing.shareViaTwitter('Message via Twitter')">message via Twitter</button>
    <button onclick="window.plugins.socialsharing.shareViaTwitter('Message and link via Twitter', null /* img */, 'http://www.x-services.nl')">msg and link via Twitter</button>
    [/code:20pd2ib3]
    
    Thanks all
  • Thanks for replying Bruno

    Based on your answer, this is what I've managed so far:

    I have a couple of questions.

    • Create productBox at columnX, loopindex * (productBox.Height + boxSpacer) - I'm guessing productBox is am image, is this correct? Also, how do I add the actions at columnX, loopindex * (productBox.Height + boxSpacer)
    • Load imagePlaceholder from array.At(4) - Do I just add the object name of each image in column 4 of the Array?
    • Spawn XXX at imagepoint(XXX) - how do I use Spawn? It's not available as an action.
    • What is an imagepoint and how do I create one?

    Thanks for your help on this.

  • Hello C2 folks, I posted this question in the C3 forums but am having no luck in getting an answer. I’m guessing the solution will be similar for both C2 and C3.

    Basically, I have an array that I need to use to populate a series of product listings.

    The original forum question is here: https://www.scirra.com/forum/populate-rows-from-an-array_t198294

    Can anyone help with this?

    Thanks all

  • Bump.

    Anyone?

    I'm guessing I start off like this:

  • I have a list of items a user can accrue points and then choose to use.

    The info is saved in an array. Here’s a example with dummy data:

    …and here’s a rough visual of what the list will look like:

    I’m guessing I’ll only need to create one single row from that visual and populate it with the first row of array data, then duplicate it for as many rows that are in the array.

    I also need to populate each row with it's relevant image (shown here by the coloured circles) - do I reference these images in the array, or drag them in by another manner?

    The labels for each object are Cost, ProductName, ShortDescription, LongDescription (do I need one for image?)

    Cheers all

  • I have the following bit of code that pulls out a random quote and it's author from an array.

    Array.At(0,Array.randomQuote) & newline & "~ "& Array.At(1,Array.randomQuote)[/code:vwvhc3sv]
    
    Can I format it so the [code:vwvhc3sv]"~ "& Array.At(1,Array.randomQuote)[/code:vwvhc3sv] has different text formatting? eg make it bold and italic? Or do I have to have to put it in a different text object below with it's own formatting?
    
    In which case how would I position the second line (Author) of text under the first line (Quote) if the first line would be of a random length?
    
    Cheers all
  • Any chance you could elaborate on this?

    I appreciate you replying but it’s a bit vague for those of us with significantly less experience in this than you.

    How/why would I integrate the Facebook SDK? Will doing this help create a leaderboard? Etc.

  • How would I go about creating a high scores table and saving players’ scores? Is this what is referred to as Global Highscore or am I confusing a term used for something else? Would I need to host a database on a server somewhere? Also, I’m guessing players would need to sign in via some method?

    Are there any tutorials to show how to do this?

    Cheers all

  • Yep, I’d like to know how to do this too.

  • Hi - does this work for Construct3?

    I can't see from the demo exactly what the plugin does, but I need something that bings up a phone's native 'share via' buttons when the share button in my app is pressed. Is this what this plugin does?

    Do you have and live demos?

    I've zero experience with using these plugin and am tying myself in knots trying to get this particular feature to work. How easy is it to implement? Do you offer support in getting the plugin to work?

    Thanks.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I'm looking to add an IAP feature in a new app - not real world money, but points gained in the game.

    There will potentially be 100s of items to purchase. There will be several different types of product (AA, BB, CC, DD) that cost various amounts (10, 20, 30 etc)...

    I'm guessing I wouldn't import all of these images and the associated data into the game layout like normal sprites, but rather reference them via an array or similar. Is this correct?

    Each item would have to have several prices of data including:

    • Item name
    • Product type (AA, BB, CC, DD)
    • Sprite name
    • Short description
    • Long description
    • Price

    And would also have to only appear when the user accrues enough points (10, 20, 30 etc)

    Would I have to add the details to a Construct array by hand, or can I import them from an existing database I've been compiling?

    Are there any tutorials how to do this? Or better still are there any pre-built examples - I'm guessing this is a pretty common feature that's been used pretty widely.

    Cheers all