OddConfection's Recent Forum Activity

  • makkancs

    ASCII is essentially the English alphabet, punctuation and numbers, with Extended ASCII adding some, but not all, characters used in other European alphabets.

    If any of your objects, sounds/music and other files in the game use characters that aren't in the English alphabet, then you might want to change them and see if it works.

    I have no idea why this would be different between r239 and r244 unless you changed the name of something.

  • dudaxan

    You should have enough reputation to post links, I think the cut off is 500

    Anyway, here's the links for anyone else:

    Elisa on Steam Greenlight

    Elisa Demo on itch.io

    Voted and added Elisa to my collection of C2 Games on Greenlight

    Game looks great, good luck with Greenlight.

  • Why are you guys making things complicated, luckyrawatlucky you can use the same event system you wrote on start, just ad an trigger every sec condition which will prevent the sprite from rotating twice on a double click or fast clicking (every 0.5 sec or 1 sec will be sufficient).

    There's more too it than that, because it needs to go different directions based on left-clicking and right-clicking which the original code didn't account for.

    The capx I created isn't that complicated, or that different to the original code, there was just some unfamiliarity with the more advanced expression operators.

    Starting value of Step is 1

    I have changed 3 with 1 and 1 with 3

    now same problem coming for left click

    Setting the initial Step value to 3 should work as that is the initial position (0 degrees) and works for me.

    I've updated the capx (r244)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • OddConfection

    I am getting 1 problem here

    on startup i click right button then Step become 3 and doesn't rotate sprite

    but after 1 click everything works fine

    Now how we can fix this problem??

    Change the starting value of Step from 0 to 3, that should fix it.

  • I never use symbols like you used and i did not understand what they belongs here

    like "?" , " : " , " > "

    last one i know its grater than symbol but how to use it here

    [quote:2moox76v]Self.Angle > 120 ? clamp(Self.Angle - 60*dt, 120, Self.Angle) : clamp(Self.Angle + 60*dt, Self.Angle, 120)

    "?" is like "then"

    ":" is like "else"

    So it's like doing:

    if thisCondition then

    do this

    else

    do that

    Or putting it in event terms:

    System: Compare Sprite.Angle > 120

    Sprite: Set angle to clamp(Self.Angle - 60*dt, 120, Self.Angle)

    Else

    Sprite: Set angle to clamp(Self.Angle + 60*dt, Self.Angle, 120)

    Take a look at the manual about Expressions

    [quote:2moox76v]?: is a conditional operator, which allows you to test conditions in expressions. This is especially useful when used with the comparison operators and logical operators. It takes the form condition ? result_if_true : result_if_false

    e.g. health < 0 | score < 0 ? "Game over!" : "Keep going!".

    The condition counts as true if it is non-zero, and false if it is zero.

  • too much calculations here

    not easy to understand for me

    I don't know about "clamp", "?" what does actually

    and How can i speedup the rotation

    its slow rotation

    and what if i want to do double click

    it should rotate 240 instead of 120

    Clamp just keeps a value within a certain range. Think of it as a combination of min and max

    clamp(value, min, max)

    You can move the angle comparisons out of the Set Angle action into separate Sub-Event conditions if that is easier to follow. They are there to know which direction to rotate.

    Rotation speed is that 60*dt part, just replace the 60 with another value or variable

    If you want to allow multiple clicks or double click, just remove the inverted Is Rotating conditions from the click events

  • luckyrawatlucky

    Here's an example capx (r244)

    I swapped "Rotate" for a "Rotating" boolean and worked directly with the Sprite's Angle.

    Also used 60*dt instead of 1 every tick for smoother rotation

    And it only changes Step on click if it's not Rotating, so there is no problem with double-click

  • CJacobsSA

    You either need to do a whole series of sub-events:

    System: Compare var_UpgradeToAdd = "ThisUpgradeName" (string that matches global variable name)

    Set ThisUpgradeName to 1

    Or, you can use a Dictionary instead of Global variables, which should let you reference values by a variable:

    Set key var_UpgradeToAdd to 1

    That would also make it easier to save all upgrades to Local Storage for persistence, using the Dictionary's AsJSON functionality to save a single value rather than all Global variables separately.

  • Just so i understand, why would it matter where the value of Game_Started is changed if it's within the same event?

    Events run every tick, Wait does not stop that, it just delays the actions after the Wait.

    Changing the value at the start prevents the Event running in the next tick.

    Changing the value at the end allows the Event to be repeated for however many ticks fit into your wait time.

  • Rable

    Could you compare the WindowHeight and WindowWidth and Set layout angle accordingly?

    Something like:

    WindowHeight > WindowWidth

    Trigger once while true

    Set layout angle to 90

    WindowWidth > WindowHeight

    Trigger once while true

    Set layout angle to 0

    EDIT: Or use the Browser Is Portrait/Landscape condition instead of comparing WindowWidth and WindowHeight

  • Any idea on the pause during pathfinding? It's cosmetic, so not a showstopper, but yea.

    Pathfinding is one of the more intensive operations in coding, so calculating a path can take a few ticks.

    The path in your example image doesn't look particularly long, so instead of breaking it up into multiple chained paths you could do just one pathfinding call and only have the pause at the start.

    >

    > Are you saying the stand alone version will use and be reliant on the current Chrome version rather than be a self contained package?

    >

    No sorry, I mispoke. It could be in a self contained package.

    Thanks for the clarification, you had me slightly worried there for a second.

    [quote:2izhrmb0]That's one of the reasons I was advocating the option to suspend your subscription, so you could put your subscription on hold for several months if you know you're not going to use it, with this option limited to a few times per subscription so it's not abused.

    That is an interesting idea I will raise with everyone when we next discuss options.

    Thanks for considering the suggestion. I know you can't include everything everyone suggests, so I appreciate your willingness to discuss it with the team.

OddConfection's avatar

OddConfection

Member since 26 Jun, 2012

None one is following OddConfection yet!

Trophy Case

  • 12-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

14/44
How to earn trophies