nkay's Recent Forum Activity

  • thanks for the answer and the clarification it works now <3

  • Heya, i'm kinda noob... even tho i looked around the forum for an answer, i still couldn't figure out how to fix this.

    So basically i'm simply trying to select an item based on his UID that i would previously store in a VAR

    The thing is that it seems to work pretty well except that the selected item isn't the good one...

    Heres the script :

    On the preview :

    When i click on the sprite with the UID44, the arrow goes to the UID42's sprite .... even tho the var shows UID 44 :/

    Help me please :'(

  • i'm sorry GearWorkDragon...i don't understand what you mean i'm a noob ...

    i tried this, but it doesn't work, guess it's not what you meant :

    anyway i found a "workaround" wich kinda works, and is a HUGE performance improvement, but doesn't use a function:

  • thanks blackhornet !! i love you ! yes, it is more efficient and it simplifies the scripting ! <3

    it still requires alot of cpu ressource but i just need to find the right way to trigger it !

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hey, thx for the fast answer !

    it's looping infinite, i wanted to make a trigger like :

    when var_red (either of sprite 1 or 2) is changed, then modify each overlapping line colour, but i simply didn't find a way to do it :/ ...the screenshoot is the only way i found to do that :/

    i tried with a function...but it doesn't work. here's a screenshoot in case i did it wrong :

  • Hey guys i need some help here, i'm making a small puzzle game, it all works nice but i think it uses way too much ressources...

    up to 22% of my i5-3570k CPU, i doubt it's normal for such a small game.

    It seems that it's caused by all the "for each" events

    these simple 2 events below use like 5% :

    there are alot of these 2 sprites in each level, if i don't use the "for each" event they don't act separately :/

    i searched on the forums/tuts couldn't find anything to replace that...any ideas ? :/

  • because it would take the easiest/closest way, and not the right one. i guess my example was not good.

    here is another one : let's say there are 2 escalators, one that goes up and on that goes down, if the AI needs to go down i want it to select the escalator that goes down and not the closest or whatever.

    dont give me answers like : "just make an invisible wall pop in front of the wrong escalator so it would have no choice but to take the right one"

    i'm trying to make a puzzle game that as many objects trying to find their paths, if i do that some objects that should pass wouldn't be able to :/

  • Hi guys, here's the deal :

    'im trying to make some kind of AI with the pathfinding object but i want it to take some paths ONLY in a determined direction.

    Something like "you can only take this road from that point, to go in that direction"

    I don't know if i'm clear enough so i made this little drawing in paint to show you what i mean.

    Is it even possible with the pathfinding plugin ? if not how else could i do ?

    I just can't figure it out myself please help me :'(

  • no, it's not a server i own, but anyway i found how to do it with the AJAX and NWjs

    for those who could need it, this is how i did :

    1- create a .bat file with the ping and set an output text file "ping xxx.xxx.xx.xxx -n 1 > test.txt"

    (don't forget to add the options you want in the .bat to only write in the .txt the data you want)

    2- import both files in your construct 2 files folder (right click > import files)

    3- add the AJAX object then make an action to create 2 AJAX requests on "Request URL", one for the .bat (batTAG) and another for the .txt (txtTAG)

    4-add an action AJAX request "batTAG" on completed > NWjs run file yourbat.bat

    5-add an action AJAX request "txtTAG" on completed > set text to AJAX.lastdata

    if that's confusing this screenshoot should help:

  • Hi, guys i'm working on a small app, and i'd like it to show the latency of a server.

    Is there any way to make construct ping the IP automatically and display it ?

    Or do i have to make C2 execute a bat file with a "/ping xxx.xxx.xx.xxxx" command, make it write the reseult on a .txt and import the .txt into construct ?

  • Thanks mindfaq ! that's exactly what i needed !!

    yes it's possible to add this option, it works perfectly ! i'm such a noob :3 ! Thanks a lot

  • ok so no built-in fonction

    Thanks i'll give it a try

nkay's avatar

nkay

Member since 11 Jan, 2016

None one is following nkay yet!

Trophy Case

  • 8-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

10/44
How to earn trophies