LBramley1996's Forum Posts

  • It worked! Thanks so much guys - really appreciate it! :)

  • I'm adding some voucher codes into my game and I need each code to be different. To do this I know I would need to use a for loop or for each but I've never used either of them before, so have no clue.

    So far, I've set the text to 'PRZ-0001' when a particular button is clicked but I need to get the voucher code number to increase by one for each click. Therefore, the second click would set the text to 'PRZ-0002', the third click would set the text to 'PRZ-0003' and so on.

    Do I need to use a for loop or for each? Do I need to use a number instance variable on the text object? What events and actions would I need to use to get this to work?

    Tagged:

  • I'm creating a prize game and I want to do a countdown for when the prize will be drawn (December 12th - my mum's birthday). Is possible to set a timer/countdown in the below boxes to show how many days, hours, mins and secs are left until the prize is drawn? I've watched tutorials for how to do mins and secs but can't see anything for days and hours which I'm guessing would be more complex.

    Would I use date or timer plug-in?

  • I tried picking it nearest to RPImage but that didn't work.

    I'll keep trying things as I'm sure your method will work - I've just got to find the right way.

    Thanks a lot for your help!

  • I've tried doing this along with a number of other possibilities but nothing seems to work :(

    I've attached an image of what you suggested but when dropping, it only drops to its' starting position.

    In my head, I've done everything right - selected on drop, pick nearest placeholder to image point (corner of window) and set position of image to placeholder but not getting anywhere.

    Can you see anything in my method that looks incorrect?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks dop, really appreciate your help. I've tried using the round() expression and tweaked the numbers in it but can't get it to snap at the correct points no matter what I put, any ideas what the exact ones would be based on the dimensions given in my first post?

    I also tried putting in 3 small 4 x 4 sprites and pinned to the corner of each image, how do I get it to pick the nearest one? Essentially, what I need to do is get the corner of each image to set X to 20 when dropped as that's where my 'window' starts.

  • I am creating a prize platform and have included 4 images of each prize which have been inserted as 1 tiled background. This then tweens onto the screen at the click of a button. As you can see from the image, I have a sort-of 'window' where the images can be viewed on the screen but at the moment the tiled background can be dragged and dropped anywhere on a horizontal axis which means you can see part of one image and part of another which is no good.

    I need the tiled background to drop/snap to a certain point each time so that one image is aligned perfectly in the window, can any help? Is it possible to do this as one tiled background or do I need to separate into 4 separate ones?

    For reference, the tiled background is 2840 x 440, meaning each image is 710 x 440.