Go to layout through Javascript?

0 favourites
  • 3 posts
From the Asset Store
The ultimate voice pack filled with 1,536 files of .......wav and mp3 of individual numbers, letters, and words (that go
  • Is there any way I could call a layout through Javascript?

    First off, I am aware of the Call Javascript plugin. I currently use Pode's HTML pack (the div one) and import CSS plugins to have an HTML calendar render on my layout within Construct. What I wanted to achieve was, on clicking a day of the calendar, the action would take you to a layout. How do I achieve this?

    I know I will probably have to use the Call JS plugin (or do the Javascript right into the HTML), and all I want to do is attach each calendar cell to a function that calls a layout on click. Again, I can't do this with events since the calendar is in HTML, or can I?

    Thank you in advance.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • One straightforward way of doing it would be to make your own plugin in the Javascript SDK. Then on some JS function you can fire a trigger in the event engine, and in your project events, on that trigger go to a layout.

  • Thank you, Ashley! I am still a novice with JS (and programming in general), but it surely makes sense now. That plugin will be my first real JS project goal. I am definitely inspired now.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)