7Soul's Forum Posts

  • Managed to solve it by adding an instance variable to the object, so each object has its own internal timer:

    [attachment=0:391w8zf9][/attachment:391w8zf9]

    "wolfTimer" goes from 0 to 10 randomly, and when it reaches 10 is does the action (used opacity just to test) and sets the timer back to 0

    The speed 10*dt, would make it the same as "once every 1 second". Making it random will average to once every 2 seconds

  • You can't do pixel-perfect collisions in C2, not with regular events nor with physics

  • Your problem is that you only have 1 ReplaceColor on your object, so you can only replace 1 color.

  • Add an instance variable to both the light and the switch called "id". Set each "id" of a pair of light and switch the the same value (first light and switch id 1, second light and switch id 2, etc)

    Now on the events,

    Ball collides with switch
    Light.id = Switch.id (don't use the system event "compare two values", use the Light event "compare instance variable)
        : Set Light animation
    [/code:3mvp28wc]
  • You should use the search function of the forums, I recently helped a guy with using ReplaceColor in this topic and it should answer your questions

  • Let's summon Ashley and ask if it would be possible to scale only one axis in a future version. Like "set layout scale" but for X and/or Y

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • For my project I created a "priority" variable for animations. I made it so animations like walking only play if the priority is 0, stuff like "kicking" play if its 1.

    So when the player presses the button to kick, set the priority to 1.

    Add a condition to the walking animation: "priority = 0" and an action to when the kicking animation ends: "set priority to 0"

    This way, the walking animation will never play if the kicking animation is playing

  • "Replace Color" is the only way to replace specific colors

  • Use the Sprite Font object instead of the Text object

  • Maybe if you put it in the other event sheet

  • On start of layout
    Set score to 0[/code:g1rylein]
    
    Global variables are a permanent thing, so even if on the top it says "Global number score = 0" that's just the initiation of the variable, but any changes to it will be permanent.
    You can also use the action "Reset global variables" if that's what you need
  • Make an sprite that has the exact same animations as the main one. Add a tint effect to it or a similar effect in C2

    When dashing, every X seconds create the sprite and set it behind the player, and make it the same animation, same frame and speed 0

  • Yeah. Parameter 1, 2 and 3 is the original color you want to change R, G and B. Param 4, 5 and 6 is the R, G and B of the color you want it to be

  • Don't do it, it's unethical and disrespectful to your customers. Contact real reviewers and let them do a honest review.

  • File > Preferences > Reset dialogs