0 Favourites

How do I fire a jQuery function from my webgame

  • Hello guys!

    I have a question about how to access a jQuery function from my webgame. Let me explain:

    The game is embedded on a website (onescroller). We have differend sections, like school, events, news etc.

    We have a website gui (some buttons in the header) and if youre clicking on them, we fire a jquery function to scroll smoothly down to the coresponding section.

    Now i created a menu with construct2 (some fancy buildings for kids) - basically they should call the same function like the website gui buttons, to scroll smoothly to the right section.

    Currently iam using the function:

    (for events)

    "../../../home.html#events"

    This loads the site complete new and moves directly to the event section but without a smooth "anker" scrolling. Our Website expert told me that i have to embed a jquery function (https://api.jquery.com/position/) into my project.

    Can someone please tell me how i could reach this goal? Or is this basically possible?

    Thank you very much!

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
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
99 10,153
karshinkoff's avatar
karshinkoff
Unread hot topic
56 4,735
MPPlantOfficial's avatar
MPPlantOfficial
Unread hot topic
0 Favourites
Why is Stencyl doing better?
44 16,858
Potato's avatar
Potato