Scap's Forum Posts

  • Hi,

    I need an object xy coordinates, but I have to get them by use IIDs. For example how I can find a path to a tree which have IID 6... (find path to tree.iid6.x and .y) I couldn't find out how i should to do that. Thanks for any idea.

  • Oo my god.. i got it! the proplem was that i wrote with upper case letter the i in the instance variable but i use lower case at the conditions... no comment

    So i use this now:

    Pick by comparison. ---- set global var - npc.pickedcount

    Working properly now that i know its case sensitive.

    Thanks

  • I tried this but it is still not working. I dont know what is the problem...

  • Hello

    The npc sprite have an instance variable which called "task" and it is a text variable. This variable can be movetower or woodcutting or idle and so on...

    So I need to set a global variable which include the total amount of idle npc. I have to count only the idle values.

    I tried to use the pick by comparison and a few more fuction but these are not working. Can you write me an easy solution please?

    Thanks in advance!

  • Hi,

    I wanna to save the mouse X and Y coordinates in a 2 dimension array many times but I want to keep the previously coordinates too in this array.

    Example:

    I have a 2 dimension array (1,2,1) at the start.

    0 (<- for X coordinate of mouse position)

    0 (<- for Y coordinate of mouse position)

    When I click by mouse it must record in the array the actually XY coordinates

    322

    568

    If I click again it need to keep these values and record the new ones in a new column

    322, 102

    568, 878

    and so on...

    322, 102, 025, 957 ... (X coordinates of mouse)

    568, 878, 100, 378 ... (Y coordinates of mouse)

    (1.) , (2.) , (3.) , (4.) ... (at first click, second, third etc...)

    Many thanks for the solution!

  • Hello,

    My character need to walk automatically by pathfinding but I need to set more stations besides the start and finish. I could figure out that I need to use the "nodes" somehow. Check the picture to understand what I want to do and help me please because it would be a very essential thing in my game.

    Thanks!

  • Hello,

    My character need to walk automatically by pathfinding but I need to set more stations besides the start and finish. I could figure out that I need to use the "nodes" somehow. Check the picture to understand what I want to do and help me please because it would be a very essential thing in my game.

    Thanks!

  • Hello,

    I have a sphere (player) what is bouncing always by physics. I want to control it with left and right arrow. It's working when I go to right with this:

    right arrow is down

    • Apply Physics force (force X + 1)

    I can set the maximum "speed" by this:

    Player; compare velocity on X; greater than 150

    • Apply physics force (force X - 1)

    It's working properly, but when I use it with left movement (I tried to use opposite values) it's happened something weird. I'm almost sure that the problem is:

    left arrow is down

    • apply physics force (force -1)

    . The "-1" value not working well but I have no more idea how can I use this force to left movement.

    I use a variable to separate the left and right movement, so the program makes a distinction between these two side.

    Thanks!

  • I found the solution at other forum!

    Physics controlled movement. Character moves by force and jumps by impulse.

  • Hello,

    I'm confused because I can't move my character properly when it use the "physics" behavior... I have a sphere (player) what is bouncing always by physics. I wanna to move this one left and right when I pressed the properly arrow on keyboard.

    I tried the "8 direction" but when I press the right key the player is pause bouncing and move it on horizontal and after the bouncing continuously. It should move right meanwhile it bouncing by physics correctly.

    Thanks guys!

  • Thank you! It's really helpful, but it seems like difficult :S I'll analyse this more Thanks

  • Hello,

    I wanna to make a multi flash game, I never do multiplayer games before. It would be a simple flash game what would be upload to kongregate (for example). Actually I don't know how should I start the multiplayer things. I don't know how works these thing. If exist an easy way, please explain me!

    Thank you!

  • Thanks! It's working now! Actually I used it before, and now I got what was the problem earlier. I want to use the first animation frame and I sat "set frame 1" action. But the "1" is not the first it's the zero....

    Anyway It's wokring now thanks for you. Cheers!

  • Hello,

    In the construct 2 have any specific code/option which simple detect/notice if a variable change?

    Details:

    I have a "player_orientation" variable which change according to player movement direction. (0-left,1-right-2up-3down)

    I need it for a lot of reason and it's working fine, but I got problem now and I need this "changing detector staff" if it exist for this.

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello,

    I'd like to set the firs frame in the "Run_right" animation when my character jump. When I used the "set frame" option I saw that I can't choose which animation I want.

    What is the solution?