farnsu's Forum Posts

  • Hello,

    I'm having an issue with the magicam. When the layout reloads (after dying)it will not go back to my character and follow him. But it works on the initial start of the layout.

    Here is a sample of the issue. (I'm probably missing some code or its a bug)

    edit: This file!

    docs.google.com/file/d/0B4FQlIOTI1g3aGdfU0Q5QU5fakU/edit

    Thanks

    fixing this will really help as Scroll to isn't flexible enough for me.

  • Im having trouble with this part:

    -> if angle > max angle

    Is this a 2nd condition after: -> set angle toward mouse x/y

    Do i need a variable to get the angle of the cannon?

    I cant find a condition that just retrieves the current angle?

  • Ok. im trying that now

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well, I thought of a way but its really stupid make the cannon invisible when it reaches a certain angle and then spawn a static one in its place, but its lame I was hoping 2 do it the math way

  • Hey, I have a cannon like object with "set angle toward (mouse.x,mouse.y)

    on every tick. (thats the entire capx)

    I need this cannon to stop rotating and remain fixed if the mouse causes the angle to be above say 260 or below 45.

    Also it will need need to work when the cannon faces the other direction.

    I just dont want it to shoot more or less strait up and down

    Thanks and I'm new<img src="smileys/smiley3.gif" border="0" align="middle" />

    P.s. I tried turret range behavior but that is for detecting targets