nickdtsag's Recent Forum Activity

  • as far as making 2 sprites into 1 is technically possible

    How?

  • Thanks

    Anyway, i changed my xml to this and now it works like a charm

    <?xml version="1.0" encoding="utf-8"?>

    <appquestions>

    <question>blah blah</question>

    <answer id="11" correct="true">a</answer>

    <answer id="12" correct="false">b</answer>

    <answer id="13" correct="false">c</answer>

    <answer id="14" correct="false">d</answer>

    <question>duh duh duh</question>

    <answer id="21" correct="true">2a</answer>

    <answer id="22" correct="false">2b</answer>

    <answer id="23" correct="false">2c</answer>

    <answer id="24" correct="false">2d</answer>

    </appquestions>

    The only think that i need to do now is to load the next question after every one displayed

    and to specify wich one is the correct

  • ps

    The xml is loaded with ajax, set to xml with ajax.lastdata, but after this im completly lost (especially with the xml files in general)

  • Hi

    I am making a game and after some time it will be interupted by a question. The user will answer it, continue to play, a new one will come up after some time etc

    I want to set in my textboxes questions and answers from an xml file.

    I want to count the number of questions and add their number to a variable

    I want to shuffle answers and questions every time, but i dont want them to show up more than one time until the user losses (no more lives or time)

    I want to set the algorithm to check if the question is right (in the xml) and procceed

    my xml structure is like this

    <?xml version=""1.0"" encoding=""utf-8""?>

    <questions>

    <question id=""1"" text=""blah blah"">

    <answer qid=""2"" correct=""true"">a</answer>

    <answer qid=""3"" correct=""false"">b</answer>

    <answer qid=""4"" correct=""false"">c</answer>

    <answer qid=""5"" correct=""false"">d</answer>

    </question>

    </questions>

    I saw all the tutorials but i cant do what i want so far.

    Thanks in advance

  • I have the same problem. Audio is fine with other games i made, but the last one has about 1sec audio delay when i built the apk with crosswalk. Tried preloading sounds and other weird stuff, nothing.

    No problems until the build. Even emulate in crosswalk is running fine.

  • someone thanks for the explanation, it was really helpfull

    i switched to dt

    Thanks brunopalermo

    I did myself the favor :p

  • You should use lerp as mentioned... <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    lerp(currentY, targetY, %distanceToMove)

    For example:

    Every tick >> Set Y to lerp(AirplaneRender.Y, Mouse.Y, 0.1)

    If you want it to move faster, increase the third value, otherwise, decrease it.

    I tried many combinations and that was the first. My plane moved allong with the mouse sometimes (like before) and sometimes not at all.

    That is really bad solution for several reasons. Do look into lerp (just check the space shooter example project).

    Actually that works perfect for me. I can also adjust the speed by modifying the +2 or -2. And ofc set it to a var if i want and let the player set it.

    Anyway, it works so its fine for me <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    nickdtsag

    Glad you found a solution that worked. I can see the benefit of your solution compared to the Lerp function. It appears you want the sprite to move at a constant rate along the Y axis whereas the Lerp function would cause the plane to accelerate more the farther from the Mouse Y it is. Just for fun, I thought I would give you an optimization for your method. You can cut your action count in half (I know, 1 action isn't a big deal but this function can help in a lot of other ways as well) by using the conditional operator. I will post a link to the operators section at the bottom so you can read about what it does.

    [attachment=0:ydawftqw]Capture.PNG[/attachment:ydawftqw]

    This single action will do the same as your 2. Just change one of your conditions to not equal then replace the action to set the AirplaneRender.Y to the following:

    AirplaneRender.Y + (Mouse.Y - AirplaneRender.Y > 0 ? 2 : -2)

    https://www.scirra.com/tutorials/77/nat ... uct-2#h2a0

    Exactly!

    And your tip works perfectly as it was before with 2 events! Awesome!

    Thank you all for your time!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • In the end, i just took a nap and relaxed.. Found the solution just after i woke up xD

  • I studied and tryied Lerp but ist too troublesome for my current goal. But it is a very good technique, thanks a lot!

    I also tried send it at oldY every 0.5 seconds. The problem is that its not scrolling there, it just appears at the oldY position instantly..

  • Hi

    Im making a game with an airplane that moves only in Y with mouse. No clicks, drag etc

    I set X where i want and Y to mouse.Y

    The problem is that the plane follows the mouse cursor instantlty. I want to make the plane go slower towards mouse cursor position.

    How can i achive that?

  • Worked Like a charm!

    changed the "c2runtime" from the string to "Source/Runtime" and works Perfectly.

    You are a life saver! Thanks a lot!!

  • I have some short of the same problem..

    I need my folder structure to be like this

    -Main folder

    -Subfolder "Media" for images and sounds (no problem so far)

    -Subfolder "Source" with the c2runtime file AND the c2runtime to be named "Runtime"

    The rest of the files can stay in their place in the main folder

    This is the structure that they want me to deliver my apps (im doing some apps for another company) and i cant find a way to do that.. Can i do this somehow?

    Thanks in advance

nickdtsag's avatar

nickdtsag

Member since 18 Dec, 2014

None one is following nickdtsag yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies