mattdaly's Forum Posts

  • Thank you for that, i'll give it a try...

  • In my game the user is able to change the look of a sprite by uploading an image using the filechooser object.

    I was wondering if there was a way of saving this change so that the next time the user runs the game the sprite keeps it's new appearance?

    I've tried the save game action but that doesn't seem to work?

    Many thanks,

    Matt

  • Hey Asmodean,

    That did the trick! Thank you ever so much :)

  • Hello,

    I'm using an array to store the names of lots of different sprites. The user is able to change the sprites using the file chooser and then the file name amends the array as a new description of the sprite.

    I've got this working well although I cannot figure out how to remove the file extension from the string when the sprite is changed.

    At the moment I have:

    File Choooser > On Changed > Array > Set Value at 0 to FileChooser.FileNameAt(0)

    If anyone could advise how i can get the filename added to the Array without the .png or .jpeg extension I would really appreciate it!

    Many thanks

  • Thank you R0J0hound your suggestion did the trick!

    I will avoid using that file sharing site in future

  • Hello,

    I am trying to create a game where the user can measure things on screen using a 'growing ruler' or tape measure.

    The user would click and drag and as they dragged across the screen a ruler will appear allowing them to measure different objects on screen.

    I really have no idea where to start! I've had a look at the canvas plugin but am none the wiser...

    Despite this, I have tried to make an attempt in the hope of illustrating what i am trying to achieve more clearly:

    https://file.town/download/shz92o2556njgucm2i545iq0f

    If anyone could point me in the right direction that would be great!

    Many thanks,

    Matt

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Wow brunopalermo that's brilliant!

    Thanks again...

    Matt

  • Thank you so much Bruno That is a very clever solution that has saved me loads of time!

  • Hey Bruno,

    Thanks for your reply

    However I don't think i've explained myself properly...

    The amount of change that a person could receive could potentially be any number between 0.01 (1 pence) and 49.99 (change from a £50 note when buying something for 1pence)

    Each number would be represented by a different sprite eg (25pence change would be represented by a sprite of a 20pence and a 5pence) or (60pence change would be represented by a sprite of a 50pence and a 10pence)

    So i'm trying to find if there is an easier way of setting this up without having to create an IF statement for every possible combination of change?

  • I'm making a game with a till that you might use in a shop

    The till will work out how much change the customer is due and then displays both the number and pictures of the coins that they should receive

    I am wondering if there is an easier way to calculate what coins are due rather than 100's of if statements saying:

    IF change=1 then create object 1pSprite on layer 0

    IF change=2 then create object 2pSprite on layer 0

    IF change=3 then create object 1pSprite & 2pSprite on layer 0

    IF change=4 then create object 2pSprite & 2pSprite on layer 0

    IF change=5 then create object 5pSprite on layer 0

    etc...

    I have attached a basic capx attempt that will hopefully explain what i mean a little better...

    https://www.dropbox.com/s/3mdjl8l0bh6b1jw/visual_change_calc.capx?dl=0

    Many thanks

  • Thank you, that's really helpful

    I'll give it a try tomorrow and let you know if i manage to get more undo steps to work...

  • Hello,

    I am struggling to figure out how i can delete the last sprite that is created

    I want to have an "undo" button if that makes sense?

    It wont always be the same sprite that is created so i'm not sure selecting the instance will work for this purpose

    Here is a link to my capx:

    https://www.dropbox.com/s/f1yaaevkwna69sx/delete%20button%20help.capx?dl=0

    Hopefully that will explain what i'm after a bit better

    Many thanks

  • Thank you GamerGon for pointing me in the right direction.

    I actually found this tutorial:

    To be more suitable for what i was trying to achieve.

  • I am trying to make a coin recognition game for children.

    When a coin is dragged to the piggy bank the value of the coin is taken away from the piggy banks total.

    I've got the basics working as I want but I cannot get the text to display to 2 decimal places.

    For example;

    £2.33 displays fine but £2.30 displays as £2.3.

    How can i get the text to always show 2 decimal places?

    Here is the cap.x of where i've got up to so far:

    https://dl.dropboxusercontent.com/u/155402113/piggy_bank.capx

    Matt

  • Thank you so much Kyatric