johnwalker's Forum Posts

  • 14 posts
  • angle(0,0, 100, 100)

    Sorry Newt.. How does that help correct the Manual?

    Regards, John

  • Hi Scirra,

    Could you please update the manual, Angle() entry:

    https://www.scirra.com/forum/viewtopic.php?t=172433

    While I wasted several hours myself due to the inaccurate entry I suspect others have as well, multiply that time together and I suspect it's a larger number than the minutes it will take to correct it.

    Thanks, John

  • Found an error in the Manual? Then help everyone out!

    Post it here:

    https://www.scirra.com/forum/website-issues-and-feedback_f158

    Regards, John

  • > Hi zenox98,

    >

    > Thanks for the reply. Can you please move this thread back to the "how do I?" forum? Since while the answer is "Website Issues and Feedback" the question is not.

    >

    > Regards, John

    >

    Ponitless semantic statement, but have it your way.

    Thank you zenox98. I'm sure when others find errors in the manual and want to help improve it they will find this thread and be able to assist in corrections as well. I would not call this pointless, rather it has the potential to help Scirra create a more helpful manual and as such decrease developer frustrations which would eventually lead to an increase in sales. A win-win, no?

    Regards, John

  • gumshoe2029 like I said one cannot trust one another therefore forget your SSL or whatever

    Lord Shiva,

    Yes SSL (or specifically https) can be hacked, absolutely! One common way is the 'man in the middle attack' you can find details on it here:

    https://en.wikipedia.org/wiki/Man-in-the-middle_attack

    The idea to encrypt is not to protect from everyone, like a bee with a sting, it will not protect itself from a fox. But it is sufficient to deter most attempts, so attackers go elsewhere.

    Peace, John

  • Hi zenox98,

    Thanks for the reply. Can you please move this thread back to the "how do I?" forum? Since while the answer is "Website Issues and Feedback" the question is not.

    Regards, John

  • Try Construct 3

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

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

    I've finding a lot of errors (omissions?) in the manual, where can I report them so they are updated?

    Regards, John

  • Hi All,

    Is there a plugin or other option for logging into a remote OAuth2 Server? I'd prefer not to have to code this from scratch!

    Regards, John

  • This is what SSL is for, it will encrypt the details over the network.

  • Hi,

    According to the manual:

    https://www.scirra.com/manual/126/system-expressions

    "...Angles start with 0 degrees facing right and increment clockwise."

    "angle(x1, y1, x2, y2) Calculate angle between two points"

    From that I assume 90 degrees is down, 180 degrees is left and 270 degrees is up.

    So why does angle(100,100, 0, 0) return -135?

    Shouldn't it be either 225 or 45? What does the negative number indicate?

    Regards, John

  • I'm a newb on Construct 2 so this maybe inaccurate (more experienced Construct 2-ers feel free to correct). But for anyone else struggling with Construct 2's idea of a function:

    • The manual doesn't mention that you must first include a function 'object' (thanks blackhornet) before you can use them (even though it creates that object as some kind of global type... you'll have to let that go). To use Functions you need to include an object on the Layout view, right click Insert New Object - Function.
    • Once the 'object' is added you can must then add it as an Event. On the Event Sheet, click Add event, select Function - On Function to define the Function name block. This can only define the Function name it's not possible to declare the parameters. This is defining the Function (As an Event, which it isn't).
    • To include parameters you have to reference them in the Function block code as Function.Param(0) etc. (It appears the parameters are being passed in some sort of JS array and Scirra haven't bothered to transpose them for us.)

    IMO

    • The IDE using 'Objects' and 'Object Types' interchangeably is confusing.
    • Functions do not follow the idea of an 'Event Sheet'. Since the definition of a Function is not an Event, it should be in it's own Sheet.
    • It should be possible to assign Functions to objects.
    • It should be possible to define the parameters with a variable name at design time.
    • 'On Function' is confusing, 'Define Function' or even 'Function' followed by it's name would be more clear as to it's purpose.

    I get that Construct 2 is only $150 so these things probably wouldn't fit in the development budget. But boy the time I've wasted working this out! Hopefully this post will save some other people the pain.

    Regards, John

  • OK thanks. I'm not sure that adding an event makes sense in the context of a function. Is there any documentation on this that you know of? There doesn't seem to be any information in the manual on basics like this, or even on defining parameters for functions.

    Regards, John

  • Hi blackhornet,

    Thanks for the reply.

    OK.. I've right clicked on the layout, selected Insert New Object, selected 'Function' and a new Object type appears in the Project list called 'Function'.

    How do I add the code to the Function?

    I would expect that I could right click on the Event sheet and select 'Add function' and type it in, but this isn't an option.

    Regards, John

  • Hi All,

    Newbie question. How do I create a function in the IDE? There doesn't seem to be an option 'Add Function' that I can see?

    https://www.scirra.com/manual/149/function

    Thanks, John

  • 14 posts