mekonbekon's Forum Posts

  • Is the new colour picker a permanent feature for comments? It's a pain to type in the RGB values every time you want to set comments to the same colour. A set palette is much quicker to use.

  • If you want the object to follow a curved path to a specific point rather than travel a fixed distance it can be tricky using bullet.

    This method will ensure the object passes through the mouse click:

    dropbox.com/s/sp4npl259hcudia/parabola.capx

    In the demo "to point" will stop the object at the mouse click, whereas "continuous" will keep it going until it hits the ground.

    (credit to R0J0hound)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Frankly speaking, now that it has been mentioned, I wouldn't be averse to a little "there are 12 events using this object/variable" additional warning text there so that we can go wut? I thought this wasn't used just in case.

    It would be extra-handy if that pop-up also had a "find all references" button so you can immediately jump to the usages.

  • You can do infinite scrolling using just a single tiled background object; instead of moving the X-Y position of the background there's an imageXoffset and imageYoffset value that you can adjust.

    Every tick:

    -> TiledBackground: Set image Y offset to ((Self.ImageHeight+Self.ImageOffsetY+scrollSpeed*dt)%Self.ImageHeight

    You'll find the set offset actions in the "Image" section of the actions menu

    This modulo "%" will automatically reposition the offset once it exceeds the image width.

    A negative scrollSpeed value will reverse the direction of movement (this is also why you add the image height at the start - modulo can go a bit weird with negative numbers.)

    Switch height to width and Y for X for horizontal movement.

  • Event 52 will trigger every tick unless you add a "trigger once" condition to it.

  • Thanks again, DiegoM.

    I've added the idea to the suggestions list:

    construct3.ideas.aha.io/ideas/C3-I-1409

    Let's see if it gains any traction :-)

  • DiegoM

    Thanks for the clarification. Is this something that could be implemented or would it be tricky within the current framework?

  • Is it possible to set the angle of a timeline path relative to the angle of the object using the timeline?

    For example, if my timeline is a straight horizontal path are there settings that will make my object follow the path vertically if the object is facing 90 degrees?

    I've tried fiddling around with the relative result setting, but haven't had any luck.

  • Okay. How to add previous button. Do we subtract one from current question?

    Yes, and then call set question. If you go back to the previous question and replay it you'll also need to revert the score; if you can skip back multiple questions then this will require you to record the result for each question - you could use an extra in column your timer array to do this, then tally the column after updating to calculate the new score.

    BTW, in your file you've got an instance variable NumberOutOf100.Question_No - it's unnecessary, just use the currentQuestion global variable in the displayed text.

  • If I understand you correctly, you want the CorrectandWrong text to display "Wrong" if the user selects an incorrect answer or doesn't select a correct answer. If that is the case then set the text to "Correct" at the start of the function and then set the text to "Wrong" in the conditions where you add 1 to n.

  • Also what if The person presses submit and no answers were checked? It should be wrong.How to code?

    It's up to you to decide how you want to represent that information to the player. As I mentioned above, if you're using the ticks/crosses to indicate the correct answers then it won't always be clear what the user's result was. That's why I suggested using tick/crosses to grade the selections and setting the correct answers text to green, so the user can differentiate between the correct answers and their selections.

  • In eEnd reset the global variables:

    + Touch: On tap gesture on Restart

    -> System: Reset global variables to default

    -> System: Go to Quiz

  • I'm not sure what you mean by "restarting arrays".

  • If you want all of the ticks/crosses to show then don't set any to invisible and just set the tick/cross on the conditions that test if the answer is correct/incorrect:

    If you do that then you won't need to set the text to green as the tick is already displaying the correct answers.

    Bear in mind that it won't be as obvious to the user how you're scoring the answers; ticks and crosses are typically used to mark user choices rather than flag the correct answers so it may be difficult to discern between a tick indicating a correct answer or a correct selection, especially when there are multiple correct answers.

  • Upon submitting, the current set-up will display:

    1. Correct answers in green text (regardless of whether or not they've been selected)

    2. A tick next to correct selected answers

    3. A cross next to incorrect selected answers

    If that's not the desired output, please let me know what you want to display for the following use case scenarios:

    1. Correct answer selected

    2. Incorrect answer selected

    3. Correct answer not selected

    4. Incorrect answer not selected