Bootfit's Recent Forum Activity

  • Bump.

    Hi all, can anyone help me with this?

  • Ok - I have 3 possibilities when displaying that array data:

    • NOT ENOUGH POINTS (shows dummy picture, and unavailable text for product name and short description)
    • NEARLY ENOUGH POINTS (shows dummy picture, product name and short description and unavailable text for short description when the BankUniversal is less than 10 points away from the full cost)
    • ENOUGH POINTS (shows product picture, full product name and description)

    Here's the event sheet...

    But here's the result:

    It shows both unavailable and full product names at the same time. What am I doing wrong here?

    Thanks

  • Either go back to the array..

    Can I set the data in each cell as a string or integer?

    ...or dd an instance variable to the Text object and set it at the same time as the Text.

    ...dd?

  • 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
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

Bootfit's avatar

Bootfit

Early Adopter

Member since 3 Sep, 2017

Twitter
Bootfit has 2 followers

Trophy Case

  • 7-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

10/44
How to earn trophies