zatyka's Recent Forum Activity

  • What TELLES0808 is asking for is far more complex and useful than the 3x3 9-patch automation. I'd love to have a robust auto-tiling tool in C2, but implementing it would not be trivial. Fortunately, tiled can get you 90% of the way. The other suggestions would be handy as well.

  • How about calculating waypoints between each pathfinding node, and finding the object closest to a waypoint:

    Demo

    Click any whitespace to start pathfinding.

    The closest object along the path will grow/shrink.

    Capx

    It's not precise, but it's an extremely close approximation.

  • Psynaptik

    It depends on what you mean by "text manipulation". If you're looking for methods of storing dialog, I'd recommend a system using the XML plugin. If you're looking for methods of displaying dialog, I've found the sprite font plugin far more useful than the text plugin. A couple days ago, I posted this topics regarding text parsing, and how it can be useful for setting up dialog systems.

    Edit: Heres an example of one method of retrieving and displaying dialog via XML I made for another topic:

    Demo

    Capx

  • Since the official sprite font plugin was released, there's a function I've used in almost every project I've worked on that parses a string into individual lines based on a maximum line width, and the character widths of a sprite font object. Basically, the function takes a string, breaks it down into individual lines, and add the lines to an array. I've found the function most useful when implementing dialog systems. Knowing the exact width and height of each line of text allows for much smoother dialog effects. Here are two example:

    Dialog at top or bottom of screen

    Dialog for specific sprites

    Here's a capx with the parsing function used in the above examples:

    Capx (Updated to v2 on 12/12/13)

    Please note, manually adding newlines to text is not currently supported.

    Hopefully someone else finds this function useful as well.

  • Try Construct 3

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

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

    The behaviors associated with your zone object are the cause of the problem.

  • I agree with tulamide regarding using anglelerp to move arrows to their new positions. The tricky part is moving each arrow the appropriate amount so the transition looks smooth.

    Demo

    Capx

  • A much simpler solution would be to loop through each objects image points, testing its distance from the player, and then setting/pinning the player to the one with the shortest distance.

    Capx

  • Great. Hopefully some Spanish speaking users will benefit from the translation.

    I just PMed you a link to the Capx. I added a couple extra events so I could comment on specific actions.

    Best of luck.

  • Sorry, I was traveling yesterday.

    zatyka

    You want to do something for the community Scirra orrect

    translate a tutorial to my native language. his is one option, yes. But if you have other skills, you can do something else like create royalty free sprites, or write some royalty free music.

    Interested in any special or tutorial I want?f you choose this option, any of the top rated tutorials would be fine, as long as it's not already translated in your native language.

    As soon as you've finished your contribution, post a link to it. Also, let me know if you'd like me to send it privately, or post it publicly.

  • As you know if you really have bought some Scirra? Want proof?

    I'm sorry, I don't understand what this means, but I don't think you're understanding my terms, and I don't know how to remedy that.

  • You could do that. You could also generate the random names directly in an array.

    Let's assume you have 2 arrays:

    Characters - An array with all the possible characters of a name along its X axis.

    Names - A array you want to populate with random names along its X axis.

    For Each X Element in Names:

       Set value at Names.curx to ""

       For Loop: from 1 to However many characters you want the name

           Set value at Names.curx to Names.CurValue & Characters.at(floor(random(Characters.Width)))

  • Let's assume you have an array filled with the all the possible characters on it's X axis. In pseudo-code:

    Var Name = ""

    For Loop: from 1 to However many characters you want the name

        Add Array.at(floor(random(Array.Width))) to Name

    If it were me, I wouldn't use individual letters, I would set up a system that alternates between consonant groups (e.g. str,th,v,gh,s,wr,r,ph) and vowel groups (e.g. a,ou,ea,ay,oo,ai). It's more work, but yields more natural results.

zatyka's avatar

zatyka

Member since 11 Aug, 2012

Twitter
zatyka has 1 followers

Trophy Case

  • 12-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • x11
    Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual

Progress

15/44
How to earn trophies