R0J0hound's Forum Posts

  • The best optimization is to only calculate the path once. You could even just use invisible sprites to make the path. The idea is to have the enemy check for an overlap with those sprites and set the angle of motion to be the same as that Sprite.

  • No worries, the concept intrigues me. That 2nd link covers a markup language using xml to customize everything with how tts pronounces stuff. Probably more that's needed but it looks idea. Unfortunately as I soon found out the standard html5 tts doesn't support it.

    The most I've found is a js lib that does tts and supports that markup language. The only issue is I find it sounds like garbage compared to most other engines.

    I didn't look but if there's a tts plugin for android export it may support that markup language. To use it should just be a matter of using the xml text when specifying what should be said.

  • delgado

    Set the iso sizes to half the object's size. That should do it in that case.

  • Found this security report here from 2011:

    http://arxiv.org/ftp/arxiv/papers/1112/1112.5760.pdf

    Which tells what that file is for chrome:

    [quote:2572s6z3]Web Data:

    SQLite file that contains Autocomplete form data in the autofill table; each

    record contains the form field name and its value

    Credit card data for e-payment Web forms in the credit_cards table

    SQL is a way to access a database file somewhere on your pc.

    So it's just for auto-complete, so unless you've used your game to get a credit card number before, the info isn't logged in that database.

    https://support.google.com/chrome/answer/142893?hl=en

    http://www.tomsguide.com/faq/id-1847774 ... hrome.html

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It just appears to be a template to ask for credit card info. Since nw.js is a browser at heart I could see why it's there as that's a common thing to have. At any rate it's no cause for alarm in my opinion.

    Also I've never seen a nw.js game ask for credit card info and there's no way for it to get it unless you provide it when it asks.

  • Opps. It turns out the standard tts linked above can't use ssml yet to control how stuff is spoken. I'll keep looking.

  • RamPackWobble

    Here is the spec for the tts api:

    https://dvcs.w3.org/hg/speech-api/raw-f ... ts-section

    You can specify the voice to use there, but nothing to change how things are pronounced.

    But then I followed a link from above to here:

    http://www.w3.org/TR/speech-synthesis/#S1

    And it appears you can change how things are pronounced.

    It may take some digging but the solution to do it should be in there.

  • hmott

    In C2 sin() and cos() take angles not degrees, so if the value is in radians you need to convert it to degrees inside sin and cos. Also in the context of this equation it expects angle() to give a value in radians instead of degrees, so you'll need to convert it.

    So literally it would be this:

    r = 6371000

    phi1 = lat1*pi/180

    phi2 = lat2*pi/180

    deltaPhi = (lat2-lat1)*pi/180

    deltaLambda = (lng1-lng2)*pi/180

    a = sin(deltaPhi/2*180/pi)^2 + cos(phi1*180/pi)*cos(phi2*180/pi)*sin(deltaLambda/2*180/pi)^2

    c = 2*angle(0,0,sqrt(1-a),sqrt(a))*pi/180

    d = r*c

    But you can cut out most of the radian conversions and get just this:

    r = 6371000

    a = sin((lat2-lat1)/2)^2 + cos(lat1)*cos(lat2)*sin((lng1-lng2)/2)^2

    c = 2*angle(0,0,sqrt(1-a),sqrt(a))*pi/180

    d = r*c

  • remy-jay

    That's expected unfortunately. The shadow positioning action was just a quick solution and probably shouldn't have been included. It just puts the shadow sprite it on top of the block directly below the picked block. It only matches the correct z-order at that point.

    I don't have a better solution at this time.

  • artbava

    This isn't such a big issue. The first few posts have solutions how it's solved. I fail to see how this issue makes one foolish.

  • I think that only occurs in the context of C2, on iOS8+ WKVWebview, right?

    I'm pretty sure all modern web browsers do jit. Chrone, Firefox and Safari each are continually making js faster, and jit is always utilized in some way.

  • This should help:

    http://www.w3schools.com/json/json_syntax.asp

    For a list you'd put it inside []

  • There is a third party json plugin by yann. That said that doesn't look like a valid json string. You can't define row twice like that I don't think.

    You could use the browser object to try to parse it.

    Browser.evaljs("var a="&variable&"; a.row.item_name")

  • Prominent

    Ah, that does make sense. I forgot about that.

    megatronx

    Doesn't Prominent's idea work?

  • If the mask is just a sprite, you could duplicate it for each layer and use blend modes. Just be sure the layer has "force own texture".

    The only other alternative would be to draw to a canvas or paster object for such grouping. I haven't been able to get the paster object to paste a layer at a time but the canvas plugin can, but doesn't use webgl. The flow would be to paste the two top layers first then paste the mask layer to a second canvas and then use a blendmode to paste to the first canvas.