manav2018's Recent Forum Activity

  • So I send a post request to a url and get an image url back. Now I load image from that url for a sprite. The problem is that the image that is sent back doesn't have transparent edges cropped. Is there way to do that through events after loading the image from the url? I want it to have the same effect as "Crop Transparent Edges" in the image editor. Please tell me if there's a way to do this.

  • Thanks! I did try that but it gave out some weird results. I'll try it again.

  • I want to add a couple of actions to take place after all the sub-events of an event are finished. Do I have to copy paste the actions at the end of every sub-event if they're in a if-else-if-else block? Is there any way to just put it once and it takes place no matter which sub-event took place?

    Suppose I have this:

    when this happens:
        if(something):
              do 1
        else if(someotherthing):
              do 2
        else:
              do 3[/code:1l9x6ydl]
    
    Now I want to add an action to take place in the end. So I put an action in the end.
    
    [code:1l9x6ydl]when this happens:
        if(something):
              do 1
        else if(someotherthing):
              do 2
        else:
              do 3
        do 4[/code:1l9x6ydl]
    
    But what I've noticed till now in Construct 2 is I have to do this :-
    
    [code:1l9x6ydl]when this happens:
        if(something):
              do 1
              do 4
        else if(someotherthing):
              do 2
              do 4
        else:
              do 3
              do 4[/code:1l9x6ydl]
    
    How do I just put an action in the end using Construct 2? I tried using a blank sub-event but that made the code act weirdly.
  • LittleStain I could make all my tiles jumpthrough then. My origin is exactly at the middle of my sprite. Also, did you notice that when I jump to another solid tile and shrink the ball, the ball automatically moves left and right and also for some reason, it is in air.

  • This is perfect but it works only for jumpthru tiles. Solid tiles don't have a jumpthru function to fall through. I want the same behaviour with solid tiles and moving tiles.

    Also, it's really strange that when I jump to another platform and shrink the ball, for some reason, the ball automatically moves left and right. The movement is little but it's noticeable.

  • /s/s9haju065txj8hx/Access.capx

    Just add dropbox.com before the above text to access the .capx file

    I have changed the template platformer player to a ball. The collision polygons seem to be fine. Is there a way to make the ball fall when it is just partially in contact with the platform? I cannot change collision polygons for tiled backgrounds.

    Also, it's really strange that when I jump to another platform and shrink the ball, for some reason, the ball automatically moves left and right. The movement is little but it's noticeable.

  • zenox98

    Thank You so much for helping it is working quite well now!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • zenox98

    No, that was a different problem. At that time, the sprite got stuck in the middle of the platform and your suggestion helped me fix it. But this time, the sprite sometimes falls off the platform without colliding with the edge marker and changing its direction.

  • Please add "dropbox.com" before the below link and paste it in your browser to download the project.

    /s/n33d56pczkh9f29/Test.capx?dl=0

    I want this sprite to change direction when it hits the edge marker. It works but sometimes it automatically ignores the edge marker and falls off the platform.

  • Problem Description

    ____ A concise description of your problem here ____

    Player stops for sometime automatically

    Attach a Capx

    ____ Upload a Capx to this post ____

    Add dropbox.com before this!

    /s/n33d56pczkh9f29/Test.capx?dl=0

    Description of Capx

    ____ Concise description of what this CapX does ____

    A moving sprite that changes its direction with edge markers

    Observed Result

    ____ What happens? ____

    Glitch in construct 2

    Expected Result

    ____ What do you expect to happen? ____

    I expect the sprite to move smoothly

    Affected Browsers

    • Chrome: YES
    • FireFox: YES
    • Internet Explorer: YES

    Operating System and Service Pack

    ____ Your operating system and service pack ____

    Windows 7 SP1

    Construct 2 Version ID

    ____ Exact version ID of Construct 2 you're using ____

    r200 free edition

manav2018's avatar

manav2018

Member since 20 Apr, 2015

None one is following manav2018 yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies