calminthenight's Forum Posts

  • Adding to Kyatric's comments. The vast majority of controllers that I have tested do work without issue. I just finished a project for remapping controllers and used X360, Switch Joycons, Switch SNES controller, and various generic controllers with no issues.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Assuming that you have the gamepad object added to the project, chrome will automatically detect it. I use a wired X360 controller all the time in preview with no issues.

    Try creating a simple project with a gamepad and text object and use:

    Gamepad 'Has Gamepads' - Set text to "connected"

  • save your project file to any cloud storage (Google drive, OneDrive etc.) and then make it shareable via link and add the link here.

  • You need to post your project file so people can troubleshoot it. Animation triggers can be a bit confusing, especially when incorporating custom movements with the platform behaviour. Post your file and people will be able to have a look at it and help. Otherwise there is no way to troubleshoot.

  • The reason the pick all doesn't return 0 is because the pick event doesn't actually even run if there are no instances.

    You can use the inverted comparison though to avoid the else.

    Of course that still only works if there drone instances of some sort.

  • I believe PickedCount=0 does not work by design as PickedCount only returns a value when there are objects picked.

    Else is the only way.

  • You do not have permission to view this post

  • You need to have an instance that is active and accessible on your layout to be able to edit the instance values for it. Make sure you have an instance on the layout, and you have that instance selected. It can't be on a locked layer.

  • Posting a cut down version of your project that shows the behaviours of the objects that you are having issues with would be helpful for diagnosis.

  • You can measure everything you want in the debugger or in the dev console and compare the two.

  • Yeah it looks like you could achieve the car over terrain animations with something like.

    Is car overlapping (terrain type)

    Sub Event - Car animation Frame = one of the animation frames

    Sub Sub Event - Car.Y < terrain.Y: Set animation frame to ?, Car.Y > terrain.Y: Set animation frame to ?

  • Apologies I didn't think that alternate layer rotation would mess up the 8 direction on another layer.

    Another method would be to use the bullet behaviour and set to bounce off solids.

    Set it to not change the objects angle and when you press a direction key you would set the angle to self.angle(+-desired direction angle)+Camerarotation.

    e.g.

    on left key down - Set bullet angle of motion to: self.angle-180+CameraRotation

  • You can use a tilemap and replace tiles programmatically. It can be a bit CPU intensive doing it every tick in large amounts but you can certainly tweak the idea and play with it to suit your needs.

    You can bias towards a certain colour by adding more tiles of that colour into the tilemap.

    Example: 1drv.ms/u/s!AkmrWgxeuxlKhIhPcdtcSXD6RCl3_g

  • Easy way is to assign it the 8-dir or platform behaviour and disable the controls for those.