We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Setting Properties on an Object

Home Forums General Questions Setting Properties on an Object

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #47206
    grimmy
    Participant

    Lets say I want a bunch of enemies with individual health. How do I go about setting properties on them (during runtime).

    I know this is a basic question but I can only find how to read initial properties of an object using the ‘Get custom Props’ puzzle and not actually how to go about setting/changing them during runtime.

    Anyone know the best practice for how to instance classes/objects and manipulate each each instance individually?

    Cheers

    • This topic was modified 2 days, 22 hours ago by grimmy.
    • This topic was modified 2 days, 22 hours ago by grimmy.
    #47212

    Hi,

    you can create an object for each entity by using a Dictionary
    https://www.soft8soft.com/docs/manual/en/puzzles/Dictionaries.html
    (this is basically JS objects wrapped in puzzles)

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #47213
    grimmy
    Participant

    Perfect! Thank You!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.