cvp's Forum Posts

  • I have a rather specific issue.

    Its kinda hard to describe so i have made a small capx to try to explain.

    https://dl.dropboxusercontent.com/u/2560922/mobiledev/forum/turretBehaviorHelp.capx

    The "shooter" object is a bullet with turret behavior

    It can target both enemy1 and enemy2, but here is my dilemma. I only want it to target enemy1 if enemy2 is in front of the shooter, and only the closest instance of enemy2, it should ignore the other enemy2 far to the right.

    If enemy2 is not present next to enemy1 the shooter object should continue its bullet course straight forward and ignore enemy1.

    Anyone have any ideas?

  • Thx RamPackWobble

    Great example. Had not though about using the pin behavior.

    One minor thing is that your example loops 1 time to many, it should be 0-599 if it should be totally accurate.

    Thanks alot for the example.

  • Hi

    I have been struggeling with doing this correctly, so hoping one of you could help me out.

    I tried to illustrate what it is i am trying to do:

    I want to switch the position of the two "ball" objects.

    They need to change position when i click on either one of them

    They should change position in a circular motion from the center position

    They should end up and stop in the exact location the other started from

    A small .capx if you need something to start with, it has the locations of the objects.

    https://dl.dropboxusercontent.com/u/2560922/mobiledev/forum/rotateBalls.capx

    Hope you can help.

  • Kyatric

    Some of the links are broken ;-(

    (e.g. both of the links to the explanations about LERP does not work)

    Think its the new forum things...

  • http://2dgameartforprogrammers.blogspot.dk/ is a great resource for none graphical people like us <img src="smileys/smiley17.gif" border="0" align="middle">

    He mostly uses Inkscape which is a free program

  • Just save the X and Y position when you change the layout.

    And then when you start the new layout set the position of your player to the saved values.

    Something like this:

    .capx

  • I have been busy with another project. So i havent tried it lately. If i get time in the weekend i can give it a try

  • you can either use:

    system -> Go to layout

    or browser -> close (to exit the app)

  • Could you post a .capx with your problem? Touch seems to be working fine for me atm.

    another thing..

    Are you using the mouse in the browser? have you set the "Use mouse input" property to "yes" on the touch object?

  • are you using an invisible rectangle object as specified in this tutorial?

    And the thing you are next to and cant jump. How is the collision polygon of that item?

    Would be easier to help you if you could post a .capx. file.

  • could you post your .capx file.

    Its hard to help you debug without that <img src="smileys/smiley2.gif" border="0" align="middle" />

  • I dont have time atm to look into your capx. sry...

    But wanted to suggest a few links.

    Have you looked at Rex's plugin "swing"?

    and

    link to rex's wiki

    That might give you some of what you are looking for.

  • you can use the "system --> for each" event to iterate through your created instances to find matches.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am apparently in a good mood tonight <img src="smileys/smiley1.gif" border="0" align="middle">

    First of all... I changed something in your game, it would work as you made it, but its not the way C2 was intended, so though I would throw that learning in here as well, hope you dont mind <img src="smileys/smiley2.gif" border="0" align="middle">

    You had 3 seperate sprites for your ninja. I changed that to be 1 sprite with 3 animation frames, which is really how you should do it. (Edit: as littleStain mentioned in an earlier post)

    To your list of questions:

    1. I have changed the attack of the ninja to be on a timer instead and then make the timer look at if the ninja is dead, if he is dont attack basically.

    2. I have altered your smoke create object a bit. I looked at the width and height of your ninja sprite and used that instead in the position creation.

    3. You need to set the font after you create the object.

    all in all:

    .capx

  • I have send you a suggestion fix in a PM. Feel free to update the community with a note of what and how it works if it solves your problem <img src="smileys/smiley1.gif" border="0" align="middle" />