0 Favourites

How to use JavaScript JDK?

  • Is there any book or tutorial that shows us how to make a plugin or behavior for C2? like I want to make a Magnet behavior from line-sight behavior and few events from it to create it, and plus I want to make it two types: North Pole and South Pole to either repel or attract. I don't have a clue. BTW I have basic knowledge on Javascript.

  • There are some resources around; but the best place to start learning how to use SDK is to read the sources (runtime.js) directly; You'll learn how to read source code, you'll learn how are things done in SDK, and you'll learn a lot of javascript along the way.

    You could start with how the line-sight behavior is implemented, and than continue from there!

    Also, check out the SDK template, you'll se that some of the basic stuff is implemented so you can get a good start...

  • There are some resources around; but the best place to start learning how to use SDK is to read the sources (runtime.js) directly; You'll learn how to read source code, you'll learn how are things done in SDK, and you'll learn a lot of javascript along the way.

    You could start with how the line-sight behavior is implemented, and than continue from there!

    Also, check out the SDK template, you'll se that some of the basic stuff is implemented so you can get a good start...

    Thanks for the info I will try them, and I want to ask you if you are a programmer, is Java near to javascript?

  • is Java near to javascript?

    Have you read the SDK overview ever? You should read the whole manual too, if you're serious about the writing plugins...

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • JohnnySheffield is more than likely referring to the following paragraph from the SDK docs:

    [quote:3esow3my]Javascript is not Java! Java is an application programming language developed by Sun (which, confusingly, can also run in browsers via a plugin). Javascript is the native programming language for web pages in browsers. Make sure you're clear on the difference.

  • zenox98

    Yes, i did! I just did not want to simply c/p it, not because i'm lazy or mean, i just believe when somebody is learning it's valuable to let a 'student' discover stuff on his own; just give him push in the right direction...

    The whole java/javascript story is interesting in it's historical contest. There's a lot of interesting details on javascript wiki page. Also, the web is full of articles on the topic. A simple google search results in a wealth of resources!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
72 22,292
Ashley's avatar
Ashley Construct Team Founder
Unread hot topic
76 9,273
Pandadoor's avatar
Pandadoor
Unread hot topic
59 6,815
totoyan's avatar
totoyan