jayderyu's Forum Posts

  • Also I found that for stability it's best to re-build your obstacle scene on start of layout.

  • Well I agree that some performance problem should be examined here is my suggestion.

    AJAX or local files. You should parse the text into paragraphs. create a spritefont for the paragraph. Then move them in groups. When the top moves to high destroy it and bring int he next paragraph. And reverse when scrolling the other direction. I might even suggest pre parsing and modifyin the text file store paragraph id. Of course if this is ajax then your pre break them up into numerous smaller files.

    I agree though the program shouldn't be having a performance hit at 50% of the screen filled with text.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The problem seems to be that SpriteFont is rendering per tick.

    If you have a large SpriteFont with no text then there is no speed problem. ie not a problem of size.

    If you have lots of text, but in a small SpriteFont object then there is no problem.

    If you have a large sprite font with lot's of text. Then you get the lag. This indicates that SpriteFont might be rendering onto the render object everytick. Where SpriteFont should only render onto the image ctx on change and first time run.

    I found even 3000 characters on a full size screen to be a problem. So Ashley may want to look into this.

    However why do you need 30k characters? what do you need that much text for?

  • Bingo. Pretty much. However the OP has asked the same question the 3rd time this month. So I'm wondering why this mentality that people need to pay for itterative upadates rather than new release.

    Also. C2 used to be cheaper. I purchased my personal license for apx $80. however when C2 hit release 100 there was sooooo much and C2 finally hit 1.0 release. They bumped the price up. But everyone already had a license didn't need to upgrade. I suspect the same will occur with Release 200. Ashley will hold off on numerous new features as we reach 190 and then boom 200 with sum major new features that will change development big time(Modualirity?) But this will also bump the price... anyways just a possibility.

  • I have a question for you.

    Have you ever purchased a license that only worked for the current release iteration?

    I'm not talking about say MSOffice 2,3,4,5

    but more along the lines of

    MSOffice 2.0, 2.1, 2.3

  • damjancd

    Can you share a stripped sample capx and info on your testing device?

  • I repeat.

    Don't use Text objects for games.

    SpriteFont was designed specifically for the purpose of cross platform and speed optimization consistency. I know the ease of convience to use TextObject is tempting. But it's inconsistent. Fonts vary from platforms, font metrics are different, fonts may be missing. As Ashley points out constantly banging out a TextBox update is not good for system performance in WebGL.

    I really feel that "Don't use Text Object in games" should be pinned. However TextObjects are 100% fine for app orientated uses.

    Also games don't use TextObjects they use SpriteFonts or special game text renderers.

  • oooh. classic bell curve with dice. If you ever want to to work with this style of random number formula distribution. RPG.net developer corner is far better place. Probablility theory is big in that area.

    though you can also check out

    Very common to use very robust.

    http://anydice.com/

    harder to use, but can produce formula that anydice can't... though anydice can do a lot.

    http://topps.diku.dk/torbenm/troll.msp

  • For the most part I agree with you. It's style of programming has a lot going for it. It's a fantastic creation. I realized the same thing a few weeks into using C2. Yes it sounds kinda silly at first. "oh it's not a REAL programming language". But then like you the concept dawned on me. Logic is logic and it doesn't matter how it's created. In fact C2 style offers a massive benefit over traditional programming. It's near impossible to make syntax mistake. It's near impossible to screw up your code. Also changes to the root of object such as a variable name are GLOBAL. C2 is marvelous.... However

    What I don't agree with in regard to C2. How the logic structure is presented and organized. Personally I feel that an ES should be attaches to Objects. The ES then would naturally have base of self inference.

    So if I say create a LERP code of moving from the left side to the right side of the screen.

    I attach this ES-Lerp to a Sprite Object Instance(not the abstract Sprite object).

    Then the Sprite Object Instance will just do what the ES logic does.

    Doesn't sound like a big deal does it. Well wait. Follow this

    Attach ES-Lerp to a Text Object. Then the text object moves to the right.

    Attach Es-Lerp to anything with an XY. and that anything moves left right.

    There are two important elements two this.

    1. This is how Behaviours work already. So personally I feel that ES should work as a Behaviour... hmmm

    2. Es Code is attached per object instances as needed. Rather than Object abtract. So I would like Objects to be a root with nothing in it except for the most basic elements of dimensions. XY, angle and WH scale.

    So except for how I feel C2 lacks good OOP and ES extensible structure. I think C2 is fantastic.

  • C2 offers access to the JavaScript SDK level to write whatever you want. Within platform limitations. It's not out side the scope of C2 for any singular or team of people to actually do some hard work.

    However Google is your friend and anyone who spends just a we bit of time using some Google Fu can find this.

    https://github.com/alongubkin/phonertc

    I would suggest however over all to just study up on the principles of networking, layering and platform capabilities. C2 being an HTML/JS engine big Achilles heel is that wrapper(browser or psuedo browser) defines what C2 can and can't do.

  • Ashley is saying it has nothing to do with C2. It's the Feature of the Browser + OS. You will have to check how it's done by checking on Chrome for Android information.

  • NaN means Not a Number. NaN is not your problem.

    Your actual problem could be many. There isn't enough detail. It's customarily a good idea to leave code for review.

  • Though I haven't done it myself. You can set the object CSS tag. Then insert the CSS block else where. that way you don't need to do it line by line.

    Ashley Tom

    Thanks Tom. Thanks Ash. Thanks for bringing the asset store. I hope it's the signs coming for really getting C2 that full integrated community and commercial experience. I'm kinda leaning on the idea that this is the first foundation structure for C2 IDE access to the store(gotta have a store) and for Modularity. But it's also important for Modularity to come out after the asset store. As it's possible for CAPX to change due to improvements and others finding bugs. Having the Modulare CAPX(CAPM?) only have Functions and Objects as accessible over say COPY/PASTE will provide that really needed Library support that C2 needs. Maybe CAPLIB? But yes. CAPX used as Library Modules rather than copy/paste for every update.

    spongehammer

    I totally understand the concern. The likely next phase is that there is a going to be a rush of work put into the store. We will see better peer review and works get shot down. As DUOIT mentioned that many tuts and samples are very low quality or teach bad C2 habits. What will happens is that better quality will rise to the top. This higher quality will spread. These works will get into games and C2 games will have a quality bump. We will see more games coming out of better quality. What will follow is that with C2 proving itself as a more valid commercial product is a large increase in developers. This increase of developers will then grow into more communitys. As an example the UnityCommunity Wiki which has tons of code to do many script work. Even though Unity has an asset store the developers are so vast that free work is still done. With C2 growing to valid commercial we will see the same shift.

    However the first phase no matter what is going to be as you claim. But it's only one phase before a new broader C2 culture and eco system settles.

    GO GO C2.

  • I used it to create an app. The app was a dictionary tagger. However I wouldn't use List Control with a 10 foot pole for gaming.