septeven's Recent Forum Activity

  • I've a suggestion too. Maybe moderators could group all suggestions in a unique topic. It'll get more visibility to all, and specially easier to devs for their todo list, won't it?

  • Same thing for me, since r70. It does sometimes and I have to open a new tab and launch again my preview from c2...

  • Thanks to all of you.

    I managed to learn more about drawing in the edittime.js.

    Nevertheless, I succeed to draw a new rectangle (with new cr.quad()) but impossible to know how to insert this new rectangle directly into my instance.

    For now, it's drawn directly at its position in the layout.

    Thanks for helping

  • Thanks Ashley but it doesn't.

    I already drew one rectangle, I just want to know how can insert a vertical line inside this first rectangle.

  • Or some keywords to look for ...?

    edit Is it a bug ? My reply send this post to Construct 2 General instead of staying in Construct Engineering...

  • Hi folks.

    I'm looking for a way to draw a line which could separated vertically a rectangle.

    To sum up, I want to draw a two cells rectangle.

    For the moment, I just have one rectangle and I didn't find the good documentation to draw more of one.

    Here's my code for now.

    IDEInstance.prototype.OnCreate = function()

    {

         this.instance.SetHotspot(new cr.vector2(0, 0));

    }

    IDEInstance.prototype.OnInserted = function()

    {

         this.instance.SetSize(new cr.vector2(75, 25));

    }

  • You can use Sentenza for iOs, which is free (with ads banner) or about $25 for full options.

    The cons side is you need to have a jailbroken device...

    I use this program because I only do apps for personal use.

  • Try Construct 3

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

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

    I'm sincerely sorry to behave as a noob...

    That's true, I'm not a javascript coder but I really begin to understand it as well as the C2's SDK.

    Enough to do 5-6 functions in my "workinprogress" plugin in a short time of learning.

    I looked through the code of the facebook plugin. Read about asynchronous option for the Google Maps API.

    Nevertheless, I didn't figure out.

    Let me just explain you some things.

    I put this in a "googleapi.js" file

    function loadScript()

    {

       var script = document.createElement("script");

       script.type = "text/javascript";

       script.src = "http://maps.googleapis.com/maps/api/js?sensor=true";

       document.head.appendChild(script);

    }

       window.onload = loadScript;

    I "dependency" it in my edittime.js

    It didn't work. I tried to put this function directly into instanceProto.onCreate = function() as well. But it didn't work too.

    Each time, I can see the link correctly added in the <head> of my html test in FireBug.

    But google is always not defined.

    The API is correctly called only when I put the link manually into the index.html after I exported it.

    Thanks for your help. I'm really grateful.

  • So, any ideas about it. A bug or something else?

  • Ashley, i'ts Google Maps API.

    Thanks for your help.

  • I would like call an API as

    <script type="text/javascript" src="http://***API_URL***"></script>

  • Is it possible to add some code directly in the exported index.html via an existing plugin ? If not, is it possible to do this directly with doing a plugin ?

septeven's avatar

septeven

Member since 27 Aug, 2011

Twitter
septeven has 1 followers

Connect with septeven

Trophy Case

  • 13-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

15/44
How to earn trophies