artbava's Recent Forum Activity

  • Thank you very much LittleStain,

    I've noticed that the column 2 is also to be ignored, as it isn't between the priority range 270 <=> 90, sry for that. But anyways, it is working as it supposed to! You're awsome! I just have to make little adjustments to it.

    In the capx you've sent me, there is only two columns on the array, but if there is more and one of them should be rejected as it does not met the 270<=>90 degrees? How can i select just the "right" columns?

    I do not want to ask too much of you. You've already did an immense contribution, but if you may still help me with this, it will be very nice.

    Thank you again!

  • Thanks for the reply!

    Do you mean m4a? Cause if it is, it is already on my project sounds folder, but it just not playing on my WP8.1.

  • An AI player search for spaces between obstacles to shoot at, looking 360 degrees (step 2 degrees) around and then generating the map bellow, which have been stored in an array. So the columns represent the range of the angles that he found.

    This is the possible angles that an AI can choose from to shoot avoiding the obstacles. I wisht it could choose angles preferably between 270 <=> 90 degrees, if it is possible. And that the choosen angle may be the middle ones.

    Ex.:

    • In column 0, he should pick 34 or 36 degrees
    • The column 1 did not met the 270 <=> 90 degrees condition, so it is ignored for now (until it don't have other option)
    • In column 2, he should pick 212 or 214 degrees

    According to this example, it will remain with the (34) or (36) and (212) or (214), which he should pick one of them randomly and finally shoot in that angle.

    I've tried to figure out a code for this, but without success. May someone please can help me with that?

    Thanks!

  • Thank you very much SamRock for your answer!

    I have a windows phone 8.1, but the update is not yet available in my country. Soon it will be, i'm sure. But for now i can't test my game sounds. My WP8.1 do not play any sounds at all! I'm not sure, but i think that the problem is WP8.1 can't play any of the default sounds created by C2. Isn't it? So i'll be glad if WP10 could. Do you know if WP10 will play game sounds properly? Or we will need a workaround like this?

    Btw, i never tried this Universal Export you mention. I'll take a look at it.

    Thanks again!

  • +1 for printing option. It will be handy If you could analyze, sketch, organize, add or remove things to your project, before making changes to the code.

  • jojoe,

    Thanks for your reply! I'm already using Array's for each, but thank you anyway. No worries!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • First of all, congratulation Thehen for your Windows Phone plugin!

    I've downloaded it but i don't know where to install it. Inside the zip file there is 4 folders: Example, Plugin, Project and Windows Phone Plugin, and Inside this last one there is another 3 folders: Example, Plugin, Project. I really don't know where to put all this folders, sry...

    I know the path must be inside the Construct 2 folder>Exporters>HTML 5>Plugin, so I've tried to place all the files there but when startig C2 it gives me an error. Probably it should be placed on different locations (duh!)

    Would someone mind to explain me where should i place each of these folders, please? I've read the 'Windows Phone Games with Construct 2" tutorial, but as i don't know how to make it work, i couldn't follow it.

    Thanks in advance!

  • Sumykl,

    Thanks for your reply!

    I'm not using every tick, just the array loop 'for each X element'. I thought it could be an infinite loop, so after copying the values, i've deleted them to ensure that the array is completely empty and the loop won't continue. As i mentioned, it gave me better FPS, but not good enough. It is strange, and i'm really have no clue what may causing it. So i'm trying to do the same process with different events.

  • Hi,

    I'm using 'for each loop' to pick values of a one dimensional array and copy them to a 2 dimensional array. But the problem with 'for each loop' is that somehow it is slowing down my game FPS on mobile devices (about 15 FPS slower).

    I've done some testing disabling the 'for each loop' and the game runs smoothly (60 FPS). So i've tried to figure out how to do the same process without using the 'for each loop', but i couldn't. I've tried 'while loop' but wasn't able to make the copy work properly.

    The only noticeable improvement (with the 'for each loop') was made by deleting the current X value of the one dimensional array after copying it to the second array. But it still slowing down the game, although less than before.

    So my hope is to get some help on how to do this process without the 'for each loop', to see if the FPS may stand on 60. Any suggestion will be pretty much appreciated!

    Thanks!

  • 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.

    Thank you very much guys!

    And sry if i didn't make myself clear. English is not my native language. Let me explain: i'm not feeling foolish about this issue, but for buying C2 too late, when there is so little effort to make it even better.

    I can live with this issue, but is not always that moving and event up and down would avoid it, specially when adding an event after a subevent of a subevent.

    I really appreciated your thoughts and help. Fortunately this community are full of helpful guys like you!

    Thanks again! Best wishes!

  • I can understand that, to be honest i was just trying to see if there is a hope for this issue. I feel a little disappointed for having purchased this software. I considered such an active community, didn't think the C2 were in this situation. What a pity! I feel a little foolish. Well, this means that we will no longer have significant updates for C2...

    Anyways i thank you shinkan and Ethan for your answers.

  • I don't believe this. If what you said is true It is a total disrespect for all C2 users, specially for new users like me. I hope you're wrong!

artbava's avatar

artbava

Member since 25 Aug, 2015

None one is following artbava yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies