oosyrag's Forum Posts

  • Don't worry about the doorevents sheet, there are literally only 2 events of interest to you per layout - On start of layout, play music, and on exit stop music. That is all there is to it.

  • https://www.dropbox.com/s/9xiagn43k8po3 ... .capx?dl=0

    Are you sure your layouts are linked to the correct event sheets? Also try removing/disabling the second condition "Is not playing" and see if it makes a difference. Also make sure the "stop music" action happens before you actually change layouts.

  • [quote:18m3avq6]Placing objects in a container has the following effects:

    If one object in a container is created, every other object in its container is also automatically created.

    If one object in a container is destroyed, every other associated object in its container is also destroyed.

    If a condition picks one object in a container, every other associated object in its container is also picked.

    Containers do not care about layout arrangement. You should place and pin each object when any single object in the container is created (which creates all the other object in the container. You just need to add two extra actions to set the position. Imagepoints on your background object are useful for this, or you can use a specific offset from origin. I've shown both ways below.

    So on trigger:

    Spawn BackgroundPanelObject

    Set TitleTextObject to BackgroundPanelObject Imagepoint1

    Set BodyTextObject to position BackgroundPanelObject.X+10, BackgroundPanelObject.Y+30

    Pin TitleTextObject to BackgroundPanelObject

    Pin BodyTextObject to Background PanelObject

    All the correct relevant objects will be picked already because of the container, so it won't affect other tooltips if you have them on the layout.

  • Normally On AJAX completed, you store the lastdata into a variable. If your tag is unique to that button's data, just display that variable on button press.

    If you have multiple requests that may overwrite each other (same tag), you can push them into an array when completed instead, so that they are all stored in the order they are completed. Then when you click the button, you can read the last completed data from the last index of the array, or have some other way to choose the index to read from.

  • Not that I know of.

    Sometimes certain forum functions are disabled due to spam or other back end issues. Usually just temporary.

  • Set the x value in lerp(a, b, x) higher. Otherwise, there might be some other issue with the way you have it set up, which we can't know without seeing how you set up your events.

  • You can always use AJAX.LastData no matter how many requests you are making, as long as you are identifying each one with a tag. If you use the AJAX On Completed Trigger with the proper tag, AJAX.LastData within that event will have the correct data requested.

    You can save the entire lastdata/text contents into any variable, and how you want to break it up with tokenat after that is up to you.

  • We're definitely spoiled. I'm very familiar with the normal pace of software development, and even so I still got the feeling like it had been an abnormally long while since the last Construct update

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No, although there are many techniques utilized to simulate 3d in a 2d engine, and there may be plugins developed to assist with psuedo 3d as well. Some of these plugins exist in construct 2 already.

  • Change or remove the specified expressions in construct 2, or wherever the file was originally made.

  • On start of layout - start music

    Whatever event has the action to change layouts, add an additional action to stop music.

  • It's a security issue. The OS should naturally prevent programs from writing and modifying files on the system normally - it should never be easy to do, otherwise there would be viruses abound. You should be able to use the user folders just fine.

    [quote:1hm0jke2]It is tempting to solve this by writing files to the application's folder. However this also may not work; on many versions of Windows, the Program Files folder requires administrator permission to write to, although you can read from it.

    The solution is to write to the user's folder, which you almost certainly have write permission for. This is provided by the UserFolder expression.

  • Your wall needs to have the shadow caster behavior, as described in the manual page and examples.

    Why would you need to cut the shadow? You only need to cut the light. If the shadow from a wall goes over another wall, you can't see past the second wall anyway.

    https://www.dropbox.com/s/3m3j4gusl4rn1 ... .capx?dl=0

  • That doesn't answer either question. Will need to see your capx to help any further.

  • There could be system permissions preventing you from writing to certain directories. The browser object's invoke download is usually safer, although it doesn't automatically overwrite a file if the file already exists, hence the appended number in parenthesis.