scorpwiz's Recent Forum Activity

  • Just in case I am going all wrong about this, here is a modified .capx, which actually shows an exact thing that is happening to me. I have added an enemy to the game, which makes a sound everytime it collides with the player.

    But, while mouse cursor is outside the layout/walls, the collision is NOT working (as evident by the lack of explosion sound, which is on collision). So, if mouse moves to any side, and out, then collision is not working. As soon as the mouse moves back in, it is working again. I am trying to make it work that collision works no matter where the mouse cursor is.

    If someone can please tell me how would I fix this, that would be great! I have really tried many things (these .capx-es I am putting here are made this simple on purpose - it's just so I can show what problem I am having).

    modified capx : https://drive.google.com/file/d/0B2knBeHLJj8ya3BkVDRaTkxTc3M/view?pli=1

    Littlestain, in case an answer to my question is in your posted capx file, then I apologize for not checking it first hehe, but I think this is a little different.

    Anyways, thank you and have a good night all! Will update tomorrow (now for real)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for a reply, I will try your solution tomorrow a bit, and will update this post.

    As for mouse to be unstuck, maybe something like, pressing Escape while "in game", gets mouse back unstuck (and/or pause the game). Something like in VMs (VMware player, Virtualbox...) how there's that combination of keys to grab/release mouse and keyboard input.

    But will definitely try your .capx, I actually tried to open it now, but it says it's made in a newer version So I will update C2 and do all that tomorrow, it is too late for me now.

    Thank you again!

  • Hi,

    It's my first post, am pretty new to Construct 2, so bear with me please

    I have been unable to make mouse cursor "stay" within layout/window. Basically what I am trying to do, I have a layout and window size the same. Let's say it's 1280x1024. When I run the game I made, I want to be able to have mouse cursor not leave that layout.

    Right now it is setup On start of layout - Set cursor to none. I would like it so that when I move my mouse to the outside of my walls (can be seen in the .capx below), that the mouse cursor stays within those walls. As it is now, as soon as the mouse moves outsides, the cursor goes back to the normal arrow cursor, and mouse can be moved all around the screen. I want it to be confined within that layout.

    Something like, if mouse.x(or y) coordinate is less than (or more than) screen x(or y) coordinate - than stay within those coordinates.

    I have included a simpler version of my problem, in this capx :

    https://drive.google.com/folderview?id=0B2knBeHLJj8yfnhael9PWVJHMVZ0OW9JYjJyRzFaaDN2ZjE3OFAyZWFzTW1EbDhlWXJwUE0&usp=sharing

    I hope I asked that understandably.

    Thank so much for any help with this!

scorpwiz's avatar

scorpwiz

Member since 28 May, 2015

None one is following scorpwiz yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies