oosyrag's Recent Forum Activity

  • All events are 'if' block. There's generally no need to specify else.

    You can add an system condition else, which states that the event will only run if the previous event did not run in and given tick. Also events run top to bottom. The whole sheet is processed every tick, so if your idle animation event is above your other two, it can normally run every tick and will get overwritten by the other animations when those events activate.

    Else is normally used in cases such as toggles, where one event says if x, then change to y, and the following event says if y, then change to x. Since there will both be true, the toggle can never change to y. This can be solved with the else condition.

    You can use JavaScript directly in Construct 3, although in my opinion that kind of defeats the whole point of C3 in the first place. One of the main selling points for me was how logically intuitive the event system was.

  • If the original json wasn't a construct array, you won't be able to load it directly with the array load action. You can definitely parse it with some loops, though I'll need to take a look at the project to see exactly how to do it. Can check it out later today.

  • Oh right, if you want a slider to aim rather than a direct target, lerp will work much better.

  • Set angle to clamp(lowerbound,angle(self.x,self.y,target.x,target.y),upperbound)

    IIRC, angle() returns a value between -180 and 180 with 0 facing right, so take that into account when setting your lower and upper bounds.

  • Normal fonts are vectors, sprite fonts are bitmaps. Normal fonts for Chinese are usually procedurally generated, I'm guessing.

    You can definitely generate Chinese character sprite fonts from a normal font, but loading and referencing such a large file into memory could cause problems.

    There are hacky type solutions out there that only load subsets of the font when required, but I have no idea how to go about implementing such a thing.

    The bigger problem is that no one wants to design a nice looking diablo style font in Chinese for some 20,000 characters (actually 50,000, but most of those never get used).

  • Normally I would first load the data into an array.

    Then you have two options.

    A. Use the advanced random plugin to pick from a set of non repeating numbers associated with the index of your array.

    B. Delete the question out of the array after using it so it can't be picked again.

  • Generally speaking, sprite fonts and Chinese have never worked particularly well together, because generating and processing sprites for 20 thousand characters is not very efficient.

  • You do not have permission to view this post

  • Are you using the viewporttop/left(layer) expressions to position your hud on the correct layer?

    Rather than a video of the problem, it would be more helpful to see the events and project properties. Isolated, if possible.

  • Check your origin imagepoint on your controller's sprite object, to see if it is actually in the middle. If it is off to one side, when you position it, the image will appear of to the side as well.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Perhaps you'll have better luck in the scripting sub forum.

    As far as the event editor goes, all instances of any given object are picked by default. Conditions only narrow down the picked list. If you have an action that applies to a sprite object without any conditions regarding that sprite, the action will apply to all instances of that sprite.

    If you mean picking all/multiple sprite objects, then the way to do that via events would be adding them all (or just the ones of interest) to a family.

  • One way to keep track of player turns is to use "states". You can keep track of the state of the game by using a global variable.

    If you make a global variable called 'PlayerTurn', you can create sub event conditions like after the dice is rolled, pick the player object that is the same as 'PlayerTurn', move it, then increase 'PlayerTurn' by one. Then the next time you roll the dice, it would move the next player object.

    Then add an event to reset the variable back to 1 if it is ever greater than the number of players present, to account for a variable number of players. The total number of players can be set by another variable.

oosyrag's avatar

oosyrag

Online Now

Member since 20 Feb, 2013
Last online 5 Feb, 2025

Twitter
oosyrag has 39 followers

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

21/44
How to earn trophies