Posts by Catstronaut

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.

    Bug: Certain fields in the theme configuration are ignored.
    List Editor Selected Group Button Background and Selected True Event Text Color #2 are the ones I've noticed, and possibly Event List Editor Selected Button Background Image. Please login to see this attachment.

    Since there's no built-in way to change the FireFly Camera Node's projection matrix directly, here's the (not terribly) hard way to do it! The attached .mfa is a bare-bones projection matrix editor that takes 4 strings of floating-point values and converts it to a new projection matrix.

    There is no way (to my knowledge) to take a matrix as a string and convert it to a matrix in memory, so I simply added an empty matrix to the new string matrix and stored the result's address. The new matrix can be copied to the address of the Camera Node's projection matrix, and the camera begins using the new matrix automatically.

    Example Orthographic Matrix:

    Code
    0.3, 0.0, 0.0, 0.0
    0.0, 0.4, 0.0, 0.0
    0.0, 0.0, 0.0005, 0.0
    0.0, 0.0, -0.0005, 1.0
    
    
    Cube Size = 1

    The matrices are stored column major, so each edit box represents a column of the result matrix.

    No offense, but you've just parroted back solutions that I've stated that I would rather avoid if possible. All I asked was if there was a built-in equivalent to the ForEach object's LoopFV expression to resolve scoping without the need to use up a Alt Val slot or an external value holder.

    Please login to see this picture.

    @Muddy

    Quote

    I suppose I could store the FV of the object referenced in the parent loop as a variable somewhere each iteration, but that would require either the use of a global variable or an object to store values, which isn't very elegant.

    Using an external value holder or global value is exactly what I'm trying to avoid. I guess I'll just keep using the ForEach object for this particular functionality.

    My issue comes in once I try to use a nested loop, while still referencing the object from the parent loop.

    With the For Each object, I can do:

    * Start of Frame
    [INDENT]- Start ForEach Loop "ParentLoop" on "Object"[/INDENT]
    * On ForEach loop "ParentLoop" on "Object"
    [INDENT]- Start Fast Loop "ChildLoop" 100 times[/INDENT]
    * On Loop "ChildLoop"
    + Fixed Value of "Object" = LoopFV("ForEach", "ParentLoop")
    [INDENT]- Do something.[/INDENT]

    I can't seem to find a built-in way to handle the part in bold. I tried using two "On Loop" conditions in a single event, but that resulted in the condition always being false. I suppose I could store the FV of the object referenced in the parent loop as a variable somewhere each iteration, but that would require either the use of a global variable or an object to store values, which isn't very elegant.

    Quote

    What does the Inventory Object have over using an array?

    The inventory object can store objects rather than simply values. This is great for storing additional data such as renamed item names, durability and other info in the object's alterable values, information that couldn't fit nicely into a plain array. Personally, though, I'd be satisfied with a simple Object Array, as I often use Active Objects as a replacement for C Structs, using renamed alterable values.