emoticon's Forum Posts

  • Maybe you need to show us your event sheet here?

  • You should create an index number for each item, then use it to sort the items

  • You should not use pathfinding in a hurry. This behavior takes time to perform the search process and is very CPU consuming. What you can do is change the properties to reduce the calculation process, but this will impact the accuracy and vice versa.

  • If I were given a case like this, I would separate the card objects as icon from the real objects themselves (weapons, potions, armor, etc.). For card objects, I will just create one sprite with icon images for all the real objects. I prefer playing with JSON for data processing which contains all the attributes of the real objects which are used as references for game logic (Data Driven). The sprite for the card is only used as an icon for the real object. Card sprites also do not store the attributes of the real object. It's all in JSON. I will name all animations according to the object ID in JSON and then group them with animation subfolders so that they are easy to organize, for example:

    subfolder1: weapon, subfolder2: warrior indicating that it is a weapon used by the warrior class and so on.

  • When I add new elements into hmtl elements, it sometimes forces to scroll to the top. Then I created a function inside HTML Element as follows:

    function GetScrollY()

    {

    return window.pageYOffset || document.documentElement.scrollTop;

    }

    But I don't know how to call it in C3 to get the return value of scroll Y position, to use it to set the HTML scroll position after 'Add new element' action.

    I use script:

    alert(runtime.callFunction(GetScrollY()))

    But it doesn't work

    Is there any way to solve this?

    Thanks

  • How do I kill them?

    WASD just seems to move me around.

    Owh I'm sorry.. I haven't made any info about this yet

    Keyboard Controls:

    Move: Up/Down/Left/Right Arrow, A,S,W,D

    Attack: Shift Button

    I just updated the front layout

    Thank you for reminding me

  • Just kill the skeletons... Nothing else matter

    https://kill-the-skeletons.web.app

    "I'm using blocks of sprites as parts of every building and implementing ZSort. As a result... laggy LOL."

  • You do not have permission to view this post

  • I submitted a suggestion to add more ACEs to JSON. If you are interested, you can add a 👍 emoticon to the OP.

    https://github.com/Scirra/Construct-feature-requests/issues/8

    BTW, how to add 👍

  • Whoaa.. I didn't expect you to have explored this plugin so far...

    I really agree,

    Construct should add more attention to this plugin, because this plugin is very important in game development

  • Wow,, you're amazing bro!

    the last one is:

    How to stop the JSON foreach

    I'm using

    System: Stop Loop

    But it's not working

    Therefore, I use boolean variable to indicate the 'found' state:

    I wonder if there is another efficient method to accomplish this situation.

  • Hello,

    I want to create empty array to root level JSON like this:

    []

    so then i will add new objects with it later.

    for example:

    [ { "name": "outfit1", "image": "top1.png" }, { "name": "outfit29", "image": "top29.png" } ]

    I'm using this:

    JSON: Set "" to array size 4

    but it didn't work

    Tagged:

  • Hello,

    I really like the cube animation on the construct 2 front page. How can I put it on the front page of my Consruct 3 tutorial blog

    Tagged:

  • I made a few changes to the HTML:

    (links to external site)

    ...and Event Sheet:

    ...and it worked fine too.

    You save my day XHXIAIEIN, thank you.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Whoa... I previously thought HTML Elements were elements within the application body itself.

    I didn't know that we could create complete HTML using HTML, HEAD and BODY tags.

    Is this legit?

    Thank you for your example. It works like a charm.