mekonbekon's Forum Posts

  • Youtopize

    Here's an update to the capx showing what I mean:

    https://www.dropbox.com/s/lajf6pr775paz ... .capx?dl=0

  • Hi Youtopize

    The easiest way to achieve this would be to have one image sprite and then store all the images as frames on that one sprite.

    Give the sprite two animations, one for feedbackA and one for feedbackB, and add the relevant images to those animations: keep the frames in order of the questions.

    That way all you need to do is set the frame on the image sprite to the current question and switch the animation depending upon which answer was selected - no need to add extra data to the array, because you're just using the existing data to switch the state of the image sprite.

    You could even add an additional animation to show an image before feedback is selected.

  • Hi ,

    I'm having trouble understanding your diagram.

    Do you want the gun to rotate a minimum of 5 degrees if a button is tapped, but if the button is held then keep rotating until the gun is at 270/325/0/35 degrees?

  • alonesia

    1) Click on The File tab.

    2) Select the Preferences button (bottom right of the pop-up window).

    3) In the General tab you can change the Event sheet font in the "Event sheet view" box by clicking the "Change..." button - mine is set to Segoe UI 11pt

    Hopefully that will work

  • markuzz78 I'm really baffled by this issue...

    I've gone through your capx and modified everything so that our capx have the same settings and objects, yet the issue persists in your capx but not in mine.

    You can compare the two capx's:

    https://www.dropbox.com/s/ylnhfs4qcmph7 ... .capx?dl=0

    https://www.dropbox.com/s/vk4km74ex3jnv ... .capx?dl=0

    The only thing I can't account for is whether we are using different versions of C2 to make the initial project - I'm on 244, how about you?

    I know you've got a workaround from MPPlantOfficial (phew!), but could I make the suggestion of creating a completely new project using the same settings as mine and seeing if the problem still occurs? Should only take a couple of minutes and at least it would allow us to identify whether or not it's just something weird going on in the original capx.

  • Hi matriax,

    I couldn't find a way to make the sprite rotate once it had been set using the "set cursor from sprite" action, but I did manage this workaround, if it's of any use:

    https://www.dropbox.com/s/0z9pg1z85fju5 ... .capx?dl=0

  • Hi dmt90001

    If you want to change all the 1 seconds to 2 seconds:

    1) add a global variable spawnTime and set it to 1.

    2) replace the "1.0" in each "every 1.0 seconds "so that it reads "every spawnTime seconds".

    3) on power-up collected change the value of spawnTime from 1 to 2.

  • tarek2 - much simpler than mine, good call!

  • Turaco You could do something like this, using the Zindex for each sprite:

    https://www.dropbox.com/s/s9a857gm34hgv ... .capx?dl=0

    It starts to get a bit complex if you have multiple sprites - you may have to shift the overlap check into a function and pass the UIDs.

  • Governador Glad to be able to help

  • Hi ToquocVN, Glad to hear you're enjoying C2 - it's a great tool <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    There are a few ways to achieve what you want; I've included two in this demo:

    https://www.dropbox.com/s/4jlehn2ek3wjd ... .capx?dl=0

    Sprite A is using a typical condition and actions setup, checking the current frame in one condition and then changing the frame in the subsequent action - one problem with this is that you need to include the "Else" condition, which can sometimes cause problems if you have multiple instances of the same sprite.

    A way around this is to use the question mark conditional operator within the action; you use it in this format: (condition to check)?(If true do this):(If false do this) - Sprite B is using this technique on event 4 to check its current fame - if its frame is less than 2 it adds 1 otherwise it sets it to 0.

    This is handy as it can save you including a bunch of nested conditions and gets around problems with the "Else" condition.

    One more thing: make sure that the animation speed for your sprites are set to zero, or use the "stop animation" action, otherwise by default it is set to run to the final frame.

    Hope that helps <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • LaurenceBedford You're welcome

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just realised I've never introduced myself!

    Hello, I'm mekonbekon, making games for fun and (hopefully) profit. Very glad to have found C2 and this great community.

  • Governador

    1) Add all the questions to an array.

    2) Use a shuffling technique to randomise the order of the questions.

    3) Call the questions in sequence from the array.

    Here's a capx that shows a way to shuffle - there are other techniques out there if you search the forums and tutorials:

    https://www.dropbox.com/s/h8pmfmjgfkvu8 ... .capx?dl=0

  • You could try adding the pathfinding behaviour to the enemy car and set up waypoints for it around the the circuit.