oosyrag's Recent Forum Activity

  • https://www.dropbox.com/s/211xd1ir76hq8 ... .capx?dl=0

    That was actually kinda fun, not too difficult. Here are a few examples of possible effects all done within C2's included behaviors and plugins.

    Unpolished, but it should give you a rough idea about what you might be able to do (anything really). If I were to touch it up I'd probably use spritefonts to take care of the kerning issue (I imagine you want to use spritefonts if text is a major focus of your game anyway).

    You'll also need to be a little creative to figure out how to properly position the effects within just a part of your text, but that really depends on how your system will be set up so I won't be taking a crack at that at this point.

  • Read the fabulous manual! https://www.scirra.com/manual/98/physics

    [quote:3d26kf5y]VelocityX

    VelocityY

    The current speed of the physics object, in pixels per second.

  • When you pin it, add a for each sprite condition and create the pinned sprite at each sprite.

  • You'll give some more information about your project.

    How are you determining slow vs fast? Do you have fps numbers?

    Do you have a lot of sprites layered over each other? Transparent spirits cost a significant amount of resources as well.

    Are you running any loops? That is another common source of slowdown.

    Also the pixi looks like it's a three year old budget smart phone running a severely out of date version of android which may not even support webgl. Remember that your computer is generally going to be significantly faster than any high end smart phone, so a low end one may not be able to provide a satisfactory result.

  • Hmm I feel like all those effects could be duplicated with functions and individual text objects after breaking a word up in to each of it's letters. I would probably create a typewriter effect system where every character of your text is each in it's own object to keep things flexible.

    I don't think it would be a huge performance hit, as there are maybe 100 characters at a time and text sequences usually don't have much other action going on.

    I might be interested in making an attemt at a later date. No promises though.

  • Hey replying on my phone so I can only give a summary, but here goes:

    A basic parser of a text file will use the newline token for tokencount and tokenat.

    Use a loop to repeat tokencount(textfile,newline) times (repeat however many lines are in the text file). Tokenat(textfile,loopindex,newline) will give you the content of each line.

  • I'm going to venture a guess that this has to do with not being able to pick a newly generated object until the next top level event.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Here is a rough capx.

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

    You'll need to work out some things like how you want the speed to be when they keep trying to sprint near 0 stamina, or the rate of stamina depletion and regeneration, and also if you want to use dt.

  • Every tick         | Set MaximumSpeed to max(50,MaximumSpeed-0.5)
    MaximumSpeed > 50  |
    Shift is Not Down  |
    [/code:2krq6s8c]
    
    Acceleration will be based on similar, or whatever behavior you are using to move in the first place.
  • I didn't even notice that expression! That is a much better solution: all done with one event.

  • This one is a little bit tricky. Everything you need to manipulate individual characters in a string can be found in the text section of system expressions.

    https://www.scirra.com/manual/126/system-expressions

    You need each individual character of a word. The logic would go something like this:

    Get the first letter of your word with left(word,1). You'll want to store that in a manner of your choosing, but I recommend pushing it into an array.

    Then you need to take that letter out of the original word by setting text to right(word,len(word)-1). This means to set the text to the rightmost characters of the word length minus one.

    Repeat until your word has no more letters (conditions- WHILE, len(word)>0).Now you have all the letters of your word individually in order in an array to work with.

    Try working with that and ask again of you don't know how to proceed, as displaying the word again in pieces that can be manipulated and multiplayer are pretty complicated too.

  • You can use tokencount to see if the word exists in your document after you import your document as a project file.

    https://www.scirra.com/manual/126/system-expressions

    https://www.scirra.com/manual/141/files

    Edit: there is also a find() expression you can use, just discovered that after reading through the system expressions again.

oosyrag's avatar

oosyrag

Member since 20 Feb, 2013

Twitter
oosyrag has 38 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