winstreak's Recent Forum Activity

  • Construct will automatically return the true value AKA 13.5451. If you are receiving only integers then you will need to rework your equation to be more complex

  • Give each button a Boolean set to false.

    On click if boolean is set to false create the dialog and set to true

  • You can manipulate values with math functions such as int() or clamp()

    int( 'your number' ) will round down in construct

    ie: int(13.5451) gives you 13

    round( 'your number' ) will round to nearest

    ie: int(13.5451) gives you 14

    clamp( 'your number ' , 'min number ' , ' max number ') will stop your number from passing the bounds designated

    ie: clamp(13.5451, 0, 10) gives you 10 (Can't be lower than 0 or higher than 10

  • You are setting your bullets angle over and over again every tick. You should just set them with an on bullet created - set angle

  • I haven't figured out a way to set the color back to normal after using set color.

    You can use replace color effect instead of set color. This allows you to find specific colors on specific Object Sprites and change just those colors and then change them back.

    Mark the RGB values you have in your effect properties, then using the event sheet set your parameter 1 (replace) value to the color you want.

    Enable it when you want to change colors - disable when you want to go back.

    If you want more information this video goes over Replace Color

    youtube.com/watch

  • If you are setting one sprite to anothers .x and .y and they arent lining up visually I would guess, it's one of 2 things.

    Origin: This is a X,Y coordinate that is the home to your sprite. Some times manipulating a Sprites size will leave you with an Origin that is not where you expected it to be. You should check both your Sprite and Mask to verify they have the same size Sprite with the same Origin.

    Layers: Parallax or Scaling (And probably other properties) can have X,Y on 1 layer not match up with the X,Y of another layer.

  • can you set the angle towards another object?

    angle(obj1.x,obj1.y,obj2.x,obj2.y)

  • Here is an example of how you would only select a top instance of 2 instances of the same object.

    If you have the purchased version you can apply this to Families to allow different objects to be compared.

    If you dont have the purchased version you will have to build your own system to check which is on top. Here's the first idea I had, probably not the best option. Set a value to each object based on their ZLevel and Layer.

    If you click on more than 1 Object at a time figure out the higher of the objects and destroy that 1.

    If you click on only 1 object you will need a different event to destroy just the single.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > Is it a small object that you resized to be bigger? If yes - then open the Animation Editor and remove the 1 pixel-wide transparent border around the object

    but yeah it is a small object that i made bigger, but there is no transparent border.

    I miss understood your problem... I think simple games is on the right track.

    Control click here to remove the single pixel of padding - Which will be stretched if your drag resize your image.

    I also believe smooth with try to make an image look as close as possible by blending pixels. Blending pixels with transparent can give you a semi see through look

  • We will need to see more of your code to help you out with this one ^^

  • Add Sprite is overlapping with left wall

    then right click

    'Invert'

  • Sounds like you have a fade Behavior set to that Object.

    Could also be done with setting the Opacity in real time.

winstreak's avatar

winstreak

Member since 4 Dec, 2019

Twitter
winstreak has 11 followers

Connect with winstreak