dop2000's Forum Posts

  • Another option is to use replace() expression and custom tags. For example:

    Variable template=This character is {rating}.
    Variable characterRating=super smart
    
    Set text to replace(template, "{rating}", characterRating)
    

    You can nest multiple replace() inside one another:

    Variable template=This character is {rating}. They are {mood}!
    Variable characterRating=super smart
    Variable characterMood=very happy
    
    Set text to replace(replace(template, "{rating}", characterRating), "{mood}", characterMood)
    
  • Are you talking about a sprite animation? Video is a different object.

    You can duplicate the animation frames in reverse order, and then loop the animation:

    0 1 2 3 4 5 4 3 2 1

    If the animation is long and you don't want to increase the number of images in the project, you can set animation frame with events. For example, run a value tween from 0.5 to (Sprite.AnimationFrameCount-0.5), ping pong=yes, looping=yes.

    And set Sprite animation frame to Self.Tween.value("tag")

  • So it's not a case of "just add that", it means implemeting an entirely new kind of user interface within the debugger inspector, and adding new UI usually means the feature request is complicated and time-consuming, which generally means it has to be really important to be worth prioritising over hundreds of other suggestions.

    Ashley

    It's really disappointing that the debugger seems to have the lowest priority when it comes to updates. While the editor and runtime receive tons of flashy new features, the debugger has remained virtually unchanged since Construct 2.

    There's still zero support for Hierarchies, Timelines, Flowcharts, Tweens! Breakpoints still work maybe 30% of the time.

    Yes, it's a back-end tool, and new users might not care about it. However, for experienced developers, dealing with its cumbersome UI and the lack of essential features on a daily basis is incredibly frustrating.

    I'm not referring to this particular suggestion, I understand that implementing a tree view is a significant request. However, there are many other ideas that remain unaddressed. Here are the features I miss the most:

    github.com/Scirra/Construct-feature-requests/issues/329

    github.com/Scirra/Construct-feature-requests/issues/6

    github.com/Scirra/Construct-feature-requests/issues/290

    github.com/Scirra/Construct-feature-requests/issues/406

  • Make a copy of the project and start disabling big blocks of code, testing the performance every time. Then narrow it down, until you find which event is causing the issue.

  • You have lots of events that run on every tick. Not only this is bad for the performance, but also makes the code very fragmented and difficult to follow.

    You should use triggered events, functions and custom actions more.

    For example, there's no point to compare the health of every ship on every tick. You should do it in the same event where the ship receives damage. And if health<=0, spawn the explosion, destroy the associated bullet in the same event. You could also get rid of isDead variable.

    Ship custom action Damage
    ... Ship subtract damageAmount from health
    ... If health<=0 : Spawn explosion, spawn Gear, destroy Ship, pick and destroy bullet etc.
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You'll probably need to use an additional behavior to continue the movement, like Tween or MoveTo.

  • You can use BBCode and newline expression.

  • You should probably follow those tutorial lessons. If you need the Water sprite to move from waypoint to waypoint, there should be more events. Once it reaches a waypoint, it should pick the next one and set it as its targetID. But I can't tell you for sure because I haven't seen those lessons.

    There is an easier way to do the same with MoveTo behavior:

    dropbox.com/scl/fi/312w1qp846z03urlpi1cg/Moveto_follow_path.c3p

  • When we try to type this in, it gives us a syntax error for the first comma (after Water.X)

    Did you type the word angle( ?

    The expression is angle(water.X, water.Y, waypointBlue.X, waypointBlue.Y) , including the word "angle"

  • does Construct have anything like this too?

    Well, yes! And oddly enough it's called a Function! :)

    Right-click in an event sheet and select "Add function". Or just press F.

    Another function-like thing is a "Custom action":

    construct.net/en/make-games/manuals/construct-3/project-primitives/events/custom-actions

  • You do not have permission to view this post

  • Check out this post, there are working download links in comments:

    construct.net/en/forum/construct-2/how-do-i-18/zelda-dialogue-system-capx-117812

    I suggest using JSON though, it's easier to learn and understand. There are several JSON addons for Construct 2.

  • It isn't read-only. I've been modifying JSON in the debugger for years!

    I guess a tree view for JSON would be nice, but it should be optional. I have JSONs that are many megabytes in size. I need to be able to copy them as plain text to analyze with external tools.

  • For TextWidth expression to work, the width of the text object needs to be enough to fit the text. So just set text width to 300 before checking the actual TextWidth.