LBramley1996's Recent Forum Activity

  • Cheers guys. How would I go about tweening the angle of motion?

    I've never used lerp before, can you give an example equation and explain how it works?

  • I'm creating a quiz game and when the user answers correctly, 3 small coins are spawned and I've used the bullet behaviour to move these and collide with the score which then adds 10 points. So far, all the bullets move in a linear direction (230 degrees) but I think it would look better if they were slightly different.

    E.g. Coin 1 is spawned and the angle of motion is 180 degrees but then after 0.3 secs it changes to 90 degrees. Coins 2 and 3 would then be slightly different to this.

    I also need the angle change to be smooth and not sudden so the coins don't jolt.

    Can this be done in C3?

    Tagged:

  • Thanks Lionz. Do you know if I can create an object in a separate layout but still remain in the same one? Then when the user goes back to the home screen, their collectables are already there, ready to view in the 'wallet'.

  • I want the player to collect items in the game and then would like them to be able to view these in a 'wallet' on the home screen which is a different layout, can this be done?

  • It works! Thanks so much guys, I'm so grateful! Jsutton, I used your method and it works perfectly.

    Not sure why they used a separate method on the example in the start page which is more complex - seems unnecessary to me.

  • Thanks a lot for the explanations, really appreciate it.

    I still can't seem to get my head around this so I've made a demo and copied a Dropbox link below. It's just a textbox but it should be displaying the countdown between now and December 12th but for whatever reason it's not working.

    Would you be able to take a quick look and see where I'm going wrong?

    dropbox.com/s/jttzie527hy93se/Countdown%20Demo.c3p

    Thanks very much for your help.

    Let me know if you can't access the link.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks Diego. I've found that now and pretty much copied and pasted most of it into my game but it doesn't seem to be working and I'm not sure where I'm going wrong.

    The only parts that are different in my game is the GetDate function and Every Tick event.

    I've set the GetDate function to: Date.Get(2021, 11, 11, 18, 0, 0, 0). This should be December 12th 2021 at 7pm and I want the countdown to show the difference between this date and time, and the current date and time. Is the equation correct?

    The Every Tick event reads I have written like this:

    Functions.GetDateDifference(Date.Now, Functions.GetDate, "Days") &

    Functions.GetDateDifference(Date.Now, Functions.GetDate, "Hours") &

    Functions.GetDateDifference(Date.Now, Functions.GetDate, "Minutes") &

    Functions.GetDateDifference(Date.Now, Functions.GetDate, "Seconds")

    Is this correct? For some reason the text is being set to '1'.

    The other events (GetDateDifference and Trunc functions) are exactly the same in my game as on the example, do I need to change these or can I keep as they are?

    Sorry for all the questions - I'm quite new to Construct and still learning things.

  • Appreciate your help guys. I'm new to using Construct, so I'm a bit slower with things on here. Can you tell me how I go about setting the future date to subtract from? At the moment I'm using Date.Get(2021, 11, 11, 18, 0, 0, 0) but this doesn't seem to be working. It should be 12th December 2021 7pm, am I setting this correctly?

  • I've created a countdown in mins and secs previously but is it possible to create a countdown in days, hours, mins and secs? I need it displayed in boxes as text.

    If it's not possible to do in Construct, then I will need to simply delete the boxes and will not include the countdown, so not the end of the world.

  • It's worked! Thanks Lionz - you're the best! :D

  • Thanks so much Lionz.

    I've copied a link below to give you the layout and event sheet:

    dropbox.com/s/h35fqced1akf9el/Quiz%20Game.c3p

    Let me know if you have any issues accessing it.

    I think I'm going wrong somewhere in my 'SetQuestions' function but I'm not 100% sure. It's finding the loopindex as I said earlier but you rightly guessed, it's only retrieving the end of the loop so the question won't change. I need the question to change when after an answer has been selected or if the countdown = 0. Hope this makes sense to you.

    Sounds very simple to do but for some reason I just can't seem to get my head around it.

    Thanks again for your help.

  • Thanks guys but I'm a complete novice at this so not getting anywhere, please could you be more specific?

    When you say to put the loopindex inside the loop, how exactly do I do this?

    If I were to use a variable, would this need to be local or global? And also, how would this be done?

LBramley1996's avatar

LBramley1996

Member since 30 Jan, 2021

None one is following LBramley1996 yet!

Trophy Case

  • 3-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

6/44
How to earn trophies