tulamide's Recent Forum Activity

  • Ah, yes, now I see! I'm sorry for being so numb sometimes :)

    I'll try to make it work.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Please excuse me, but I still don't understand.

    Do you want the inventory to be saved everytime when it is changed, instead of just on exiting?

    I mean, it works, right? Why would you want to change it?

  • This is pretty fine system but i can't make it works to load objects on start up. (?21 and ?25 events in example).

    I'm not sure what you mean. It works for me, loads the items from the array and shows them at the correct places. I can place items in the inventory, I can move them around and they get saved when exiting the application. The next time I start everything is loaded correctly as it was when exiting.

  • Oh, I see. So you're using some premade Python-script, but you don't know Python yourself?

    I'll explain it a little bit more:

    'os' is a module. Every module used in another module needs to be imported prior to using it. Insert the following line at the start of your script:

    import os

    Now Python knows where it has to look for the function getcwd(), so if the next line is

    movieFile = os.getcwd() + r'\planetajogos\INTRO2.wmv'

    it will look into the module 'os' and search for the function 'getcwd', execute it and return the path to the current working directory, which will then be combined with the second string.

    For the basics of Python have a look at various teaching sources in the web, e.g. the wiki book Python Programming. It is essential to know the basics of Python if you intend to use it.

  • There's already a thread about it. Let's not flood the 'website issues' with redundant threads. <img src="smileys/smiley2.gif" border="0" align="middle">

  • Well Python's counterpart to Construct's AppPath is os.getcwd(), e.g.

    movieFile = os.getcwd() + r'\planetajogos\INTRO2.wmv'

    But I'm not sure if this is what you're looking for.

  • A function can be set to "ignore" or "remember" picked objects.

    When working with just one object type but many instances, just pick the proper instances and call the function set to "and remember picked objects"

    example:

    + Function: On function "props"

    -> myText: Set text to myObject.X

    + System: For each myObject

    -> Function: Call function "props" (and Remember picked objects)

    When working with different objects but the same object type (e.g. several different sprites) put them in a family.

    example (sprites put into family Blue):

    + Function: On function "props"

    -> myText: Set text to Blue.X

    + System: For each Blue

    -> Function: Call function "props" (and Remember picked objects)

  • If the autobackup-feature does not work for you, then better not use it. Generally, there is no need to automatically save a backup every second minute.

    Try making it a habit to duplicate the most actual file every day, before you start working on your project. It isn't much effort, costs no more than a few seconds, and you will never lose more than a day of work at most. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • I wouldn't do so.

    Just as in this thread, a day ago, just use the path object. It returns all system paths, like desktop, cookies, fonts, my documents, app data, etc.

    It works independent of the system's language.

  • Use the system expression 'Distance between points', or distance(x1, y1, x2, y2), e.g.

    + System: distance(objectA.X, objectA.Y, objectB.X, objectB.Y) Greater than 100

    -> objectA: Move 80 * TimeDelta pixels at angle(objectA.X, objectA.Y, objectB.X, objectB.Y) degrees

    -> objectA: Set angle towards objectB

  • By the way, how do i make my link clickable like DravenX did?

    With the uniform resource locator tag, url /url

    Just click on the little world icon with the chain link and complete it with the address and title

  • Ah, I see. It wasn't very clear from your first post.

    I remember talkings about the plan for an inventory plugin a long time ago. But to my knowledge there is no plugin or Python script. The best you can do is looking at the tutorial section. It might cover creating inventories.

tulamide's avatar

tulamide

Member since 11 Sep, 2009

Twitter
tulamide has 3 followers

Trophy Case

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

Progress

17/44
How to earn trophies