LittleStain's Forum Posts

  • From the Manual on pin behaviour:

    Simply adding the Pin behavior to an object does not do anything. You must use the Pin action to pin the object to another object.

    So yes, you need an action in the event-sheet..

  • without seeing your events/capx we can only guess..

    My first guess would be conflicting events..

    If you manually changed the current level variable, it's probably an event that changes it again..

  • Would it be possible for you to share your events/capx?

    Unless you'd like people to guess..

  • While 90 is a "right angle", in this situation right angle means the correct angle. LittleStain's example visualizes it perfectly but you can simplify it to just this:

    projectile: on collision with target:

    --- projectile: set angle of motion to 2*(angle(Self.X,self.Y,target.X,target.Y)+90)-Self.Bullet.AngleOfMotion

    I think I'll always keep thinking visually..

    Thanks for the maths!

  • So I guess you would like something like:

    Enemy on created

    Enemy set Instance var Enemysize = random(4,128)

    Enemy set size [width = EnemySize, height = EnemySize]

    Player on collission with Enemy

    if PlayerSize >= Enemy.Enemysize

    destroy enemy

    else

    destroy player

  • Glad I could help..

    I should warn you, though, that using those plugins might really diminish the amount of help you are able to get on the forums..

    People who don't have them installed can't open your project and will have no clue as to how to work eith them anyway..

    Good luck on your project!

  • You could do something as simple as creating a group (not active on start) in which the button events are and adding a wait action to the on start of layout event before activating the group ..

  • Or do you mean something like This?

  • If you remove it, all choppers that are overlapping are selected when setting state back to "moving"

    This is not the most beautiful solution, but it works...

  • Doing something a different way from what you are used to doesn't make it harder..

    Learning new ways to do things are an essential part of programming..

    Instead of calling it "asking for the easy way", some people would call it "asking for the lazy way"..

    (Not that I'm that kind of a person, offcourse)

    I think this plugin might suit you:

    Plugin json

  • It would be easier to help if your questions were more specific..

    Probably all the functions you are looking for you can find on this forum, allthough maybe they have to be adjusted to your needs..

  • Yeah, I guess you are overcomplicating things, but this way it works:

    chopper

  • Wouldn't something like this simple event do the trick?

    Chopper is overlapping Chopper

    Pick top instance

    chopper set state: "moving"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can either download the beta-version from the bottom of this page or follow these instructions:

    How to open newer versions of capx files

    unzip the capx and edit the caproj file in a text editor

    find where is says (for example)

    <saved-with-version>21100</saved-with-version>

    and replace with an older number eg

    <saved-with-version>17000</saved-with-version>

    save and try