Winged LionMan's Recent Forum Activity

  • Click on a sprite in the menu and set a variable to a certain value which relates to that sprite, i.e. if you clicked the grass then set var to 1, if you clicked path then set var to 2. Then on mouse clicked, check that variable and create the object.

    Oh cool, thanks! But just wondering, what if I wanted keep the objects from overlapping?

  • I don't need to know anything too complicated, I just want to know how to take a menu with the sprites of the objects you can place, and have it so that if you click on a sprite, then click the screen, the sprite will appear where you clicked

  • If var is still 11 wouldn't it just be instantly changing it back to frame 0?

    You might want to use a different test such as sprite visible then set to frame 0 or use a separate variable.

    I never thought about that, thanks

  • It's a bit more complicated than that. My game is where you press a button to go to the next layout, but I can't get the animation to play where the button changes to a sprite that looks pressed.

    I've set it so that:

    On var = 11,
    Make Button visible
    Set text to "(Doesn't matter)
    Set animation frame to 0
    [/code:2hww4w56]
    
    And after that, the thing that should actually make the button press:
    
    [code:2hww4w56]
    On button left clicked
    Set animation frame to 1
    Wait 0.5 seconds
    Go to layout 2
    [/code:2hww4w56]
  • Make and use an instance variable so when you flip the lever the variable toggles on and off, then use that to decide if the door is open or not.

    If Lever A is flipped -> Toggle Lever A Instance Variable 0/1

    If Lever A Instance Variable = 0 -> Close Door A

    Else -> Open Door A

    Repeat the steps for Lever B etc...

    But would I have to create a new object for every lever?

  • What I mean is that I want Lever A to open door A, and Lever B to open door B, also I can't seem to make the player able to change the levers frame when they press a button and are overlapping with it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If it's pixel art game, change sampling from "linear" to "point" in project Configuration Settings.

    Thank you, I'll try it now!

  • What's happening, is that when I open up my game, my character sprite has a lot less detail than it should, how do i fix this?

  • Hi,

    I made a quick capx to explain how to do it with a few extra events:

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

    I hope this helps you out.

    Thanks!

  • I want to create a trail behind my sprite that are copies of my sprite, but I have no idea how to do it. I've looked for a few minutes but I can't find anything like that in the "effects" area. I also want to make it so it only happens when a variable is set to 1.

  • Do you know how to do it for setting a value? Instead of 'Set value' for variable you can use 'Add to' and just add 5.

    The problem is that that's for instance variables, I want to do it with a progress bar. I can't seem to find an 'Add To' option on the progress bar.

  • What I want to do is create a progress bar, but instead of setting the bar to a certain value when I grab the item, it increases the bar's value by five, which you will be able to see.

Winged LionMan's avatar

Winged LionMan

Member since 7 Feb, 2016

None one is following Winged LionMan yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies