tarek2's Recent Forum Activity

  • There is nothing wrong with your events that will stop the Enemy in that state forever, it should work.

    I will check first:

    -If all the enemies have (LOS = 32) because if they have a big LOS then that will prevent them from switching to no Attacking

    Also, check on the Debugger:

    -If the MoveTo is enabled as you may have another event setting the MoveTo disable

    -You can check to swell the enemy State if it switches to No Attacking so you know there is something wrong with the LOS

  • For the first loop, you need to divide the TileMap.Width by Tile Size and the same for the Height

    Example:

    We have a Tilemap that has (Tile size =32)

    For "Y" From 0 To floor(Tilemap.Height/32) -1
    ------For "X" From 0 To floor(Tilemap.Width/32) -1
    
    + Tile.At(loopindex("X"), loopindex("Y")) # -1
    
    
    -> System: [Create object coin on layer "Tile" at
    
    Tilemap.TileToPositionX(Loopindex("X"))
    Tilemap.TileToPositionY(Loopindex("Y"))
    
    
    
  • can you help me in this thread if you parse it like this i want to prevent duplicate entries from being created

    Quite difficult to help as it has:

    -Many parts in a different language

    -We don't know what Data is coming from Photon?

    -We don't know what you exactly target on the tokenat? I know you are targeting "_" but what is your expected result? for anyone to be able to tell you if there are any mistakes.

    Can you provide an example of:

    -A line of Data received from Photon (if possible make the line contain a duplicate from the List) true so we know what you expect to not include on the List

    -And explain what you exactly expect from this line of Photon

  • > Doesn't support that feature at the moment so you will need to do it yourself by looping through the existing List and removing all the duplicates.

    >

    > Here is one way of doing it:

    >

    >

    >

    > https://www.dropbox.com/s/ogpzayc4j0cdd75/Remove%20List%20Duplicates.c3p?dl=0

    Can I have the same example on Construct 2, I still can’t enter Construct 3

    You should have been able to replicate it easy in Constrcut2 as is the exact same code.

    Here is the C2 version:

    https://www.dropbox.com/s/aapubb5rbm61j8w/Remove%20List%20Duplicates.capx?dl=0

  • I'm not of much help as I don't use the scripting though I think you will get better support if you post it in Scripting Section:

    https://www.construct.net/en/forum/construct-3/scripting-51

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Not sure if I understood correctly but it looks like you want to encrypt the "a" and then decrypt back the "a"

    Maybe something like this?

    https://www.dropbox.com/s/xa9isi26qrs29z6/1-Encrypt.c3p?dl=0

  • Does it matter that you wrote positionToTile"X" twice in your code? Is the second one is supposed to be positionToTile"Y"?

    Yep definitely it should be positionToTile"Y" good spot

    "Not sure if that will fix your issue though" for:

    So everywhere I read that you can use PositionToTileX function... yet this function is not accessible in my code... it says:

  • That I cannot reproduce. After switching the worker mode on it works as crisp as it gets with the debugger open, which is in my case 144 fps with no hiccups.

    I'll put it in the tracker.

    https://github.com/Scirra/Construct-3-bugs/issues/5926

    Yep that's the best thing we can do start with the Bug that we can all reproduce like the (Worker ON/OFF) and then see what's going on with the other one. Though they may fix the first one and that fixes the other if somehow they are related.

  • Nice ideas ))

    Here is one more idea to add more variation to the Menu

    https://www.dropbox.com/s/1d3y1cdswd85p8j/closest_value2.capx?dl=0

  • I need a bit help you seem to be experienced, please help. When i click right or left arrow to move right or left on clicking the character shakes for 0.5sec something like this the origin point and poly is correct i tried removing every event without right left but nothing got fixed, it happened suddenly after i made a fuction screen shake, but even after deleting this nothing fixes, HELP ME PLEASE.

    Hi xenon lero

    The best thing to do is to open a new thread specific to your issue as they don't like they post new issues on other threads not related to yours as they will see it as Spam.

    So make sure you open a new thread and if you can share a minimum demo and definitely you will get help, I will keep an eye on that too.

  • Doesn't support that feature at the moment so you will need to do it yourself by looping through the existing List and removing all the duplicates.

    Here is one way of doing it:

    https://www.dropbox.com/s/ogpzayc4j0cdd75/Remove%20List%20Duplicates.c3p?dl=0

tarek2's avatar

tarek2

Early Adopter

Member since 26 Jan, 2016

Twitter
tarek2 has 12 followers

Trophy Case

  • 8-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
  • RTFM Read the fabulous manual
  • x5
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

15/44
How to earn trophies