PKrawczynski's Forum Posts

  • If you string returns like you show you could check for the commas also: ,7, which would not give any other numbers, like 17, 27, etc.

    No, actually you cant. You cant ever assume its going to be written that way since there are 4 ways to do it.

    7 will get false positive with 17

    ,7 will get false positive with ,71

    7, will get false positive with 17,

    ,7, will never get false positive but there is only 25% chance it will have this format instead of other 3.

  • In the manual you can find system expressions you can use with text-objects.

    I dont want to be ungratefull but thats just not helpfull at all. I know about manual and Im reading it whenever im in doubts.

    I would be very happy for complete answer with directions what to do.

  • Hey, thats something terribly easy yet Im having hard time doing it with construct2.

    "1,6,17,3" - lets say I need to check if it contains number 7. I cant just check if 7 is in string because there is very high chance of false positive. I did want to do what I was used to in any programming language wchich means splicing text by , separator and put all results into array, then check if value is contained in array but in construct2 its just awfully messy, long, and pretty ugly.

    Any ideas how I can do that faster/simpler way?

  • Cant change x,y position of SquareTX via game logic and can only do this in inspector view - could it maybe be updated to add setX and setY functions as I would like to center my board but layout view is dynamic because of scale outer.

  • Ah right I see now that you can get nodeXAt. It was probably missing from documentation.

  • Pathfinding behaviour is quite useless for turn based game purpose because it doesnt give access to array of points on found path and can only follow path without much of my input.

    Anyone have something done that can be used in case where you want to know points on path and move object by yourself instead for lets say only 3-4 cells or like x ammount of pixels?

  • You should just write a plugin. It really shouldn't be that hard if you already know javascript.

    I dont know JS. I do have coding experience but I pretty much hate JS.

    No idea also how this sort of plugin would work. How would it allow external js to control game timescale.

    Either way hacky workaround is good enough as it does job it should.

  • Is there a reason it should be externally?

    Why not use what you have at your disposal inside Construct2?

    Because I need to call external js to show ads and their js needs to control if game should be paused or not. Thats how it needed to be done - Ive managed.

    I just had to hack my code inside of prototype.logic function with simple boolean that optionally skips whole logic loop. Added 2 window functions - stopGame and resumeGame they are basically available everywhere as "cr_..." function is called in index.html.

    Only disadvantage is that i will have to edit my c2runtime everytime I make adjustment for client but it only takes 1 minute so I can live with that.

  • Is there a way to get access to timescale with ExternalJS I dont care how dangerous it could be. Need to have way to change it on those callbacks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • My client requested me to add his advertising into game. Call to Browser.ExternalJS needs to have this form:

    request(fnPause, fnResume)

    Wchich means I need to pass js functions there that will stop or resume gameplay. How do i do that?

    Preferably WITHOUT writing plugin. If plugin needs to be written im willing to pay for it.

  • Ashley do you understand iphone5 with ios6 is broken? (According to my clients and materials they sent me)

    Im not talking only about ios7. We can drop discussion about it already i understand your reasoning.

  • Like I said in my first post - it also happens on ios6 with iphone5 so I think it would be great to investigate bit further whats going on.

    I can also confirm one dev was able to make game work on fullscreen with this piece of "code" wchich I applied to my own game

    dropbox.com/s/fnpaxjwgw731oba/Screenshot%202013-10-22%2020.28.13.png

    I dont know wchich scale mode he used but im looking into solutions.

  • Disregard what I said earlier about letterbox. I got report from 3 separate publishers it doesnt fix issue and seen it on friends phone.

  • Edited out.

  • I sincerely hope everything is okay right now with .capx and you could take a look Ashley as this bug is pretty serious.

    Link to .capx file (required!):

    dropbox.com/s/al1e1n4dr80y7le/NoPluginsExample.capx

    Steps to reproduce:

    Run the game on iphone5

    Observed result:

    dropbox.com/s/ir8u2lfz561z013/photo.jpg

    Expected result:

    Screen shouldnt be cut off on the bottom, should look like this:

    dropbox.com/s/1z03l3auqd3wplg/Screenshot%202013-10-18%2021.24.02.png

    Browsers affected:

    Chrome: no

    Firefox: no

    Internet Explorer: no

    Operating system & service pack:

    iphone 5 with ios6 and ios7

    Construct 2 version:

    any but ive used 139-146