The hit detection for clicking an actor is very off? Very, Very Frustrated.

All I am simply trying to do is make it so when an actor is clicked, a variable is set to +1. I am using touched is pressed. for the longest time I thought it simply was not working. While smashing my mouse around after two hours of fruitless attempts to figure out what is wrong, I noticed the the part of the screen detecting my clicks is in fact not in the correct location. For some reason the detection zone is somewhere below and to the left. Exactly where changes depending on how big or where the actors are placed.

I am clueless as to what is wrong and how to fix it. Does anyone know what is wrong?

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    Hi Zandooma (and welcome to the forum !)

    I think you're going to need to supply a few more details if you are hoping for decent or quick answer to the issue . . . .
  • ZandoomaZandooma Member Posts: 6
    I have an actor. It is simply a white box. I am trying to make it so that when it is clicked TextPos = TextPos+1. I am using the touch condition to detect when I click the box. When I click the box, nothing happens. But a space below and to the left of the box will activate my TextPos as if the box were really there. It is as if the box is in one place but the graphical representation is in another. Depending on how big I make the actor (As in size on the screen) the section of the screen that activates my TextPos will be a different distance away. Sometime half of the invisible real box is in the graphical representation only if the box is big enough. I cannot find the invisible if I make the actor to small (I am assuming it is just way off the screen somewhere).

    If you still don't understand, tell me what kind of details you are looking for, as I am clueless as to how else to describe this. =(
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    If it's just a project with an actor or two and not your game would you mind sharing it please so we can look at the problem? Upload it to Dropbox or something and share the link.

    I tried replicating it and it seems fine. I thought it might have been related to the positioning problem I spotted today
  • SocksSocks London, UK.Member Posts: 12,822
    If you still don't understand, tell me what kind of details you are looking for, as I am clueless as to how else to describe this. =(
    Perhaps upload your project or take and post some screenshots of your rules.
  • ZandoomaZandooma Member Posts: 6
    As this is the first time I have ever used mediafire, I apologize if this does not work or I sent you the wrong files.

    http://www.mediafire.com/download/jigecf300hyyi0j/Team+Project+Programming+Level.zip

    It is a project for school. The white square and the green thing were just stand ins until I got the clicking to work. I was planning on making them look like real buttons later.

    Please tell me if the file or something does not work!
  • SocksSocks London, UK.Member Posts: 12,822
    Please tell me if the file or something does not work!
    Works fine for me, I need to click within the white square for the text to change.

    (I'm on a Mac).
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    I don't know how one opens Windows GameSalad files on a Mac without any utilities so I can't look at it.

    Could it be related to the decimal problem Windows has when you first set up GameSalad?
  • ZandoomaZandooma Member Posts: 6
    That is madness!!!!!

    This is where I expect to click on my computer: http://www.mediafire.com/view/q0rmoeb74bl8d/Photos#m73675obib88j5x

    This is where I have to click to make it work: http://www.mediafire.com/view/q0rmoeb74bl8d/Photos#cqzqym0ewjdu9fr

    I am so lost :(
  • ZandoomaZandooma Member Posts: 6
    edited November 2013
    I looked at the thread about the decimal problem and followed directions. I already had it correctly set up.

    Are there any other options i could be goofing up?
  • SocksSocks London, UK.Member Posts: 12,822
    edited November 2013
    I don't know how one opens Windows GameSalad files on a Mac . . .
    Just stick .gameproj on the end of the folder name.
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    Thanks @Socks, I was originally renaming the gsproj file within that folder, which wasn't working.

    @Zandooma, it's working fine for me too, but I'm also on a Mac.



  • ZandoomaZandooma Member Posts: 6
    I really need to get this working by the end of this week. This is for a school project. What else could possible be the problem?
  • SocksSocks London, UK.Member Posts: 12,822
    edited November 2013
    I really need to get this working by the end of this week. This is for a school project. What else could possible be the problem?
    Have you tried to set up a new project and reproduce the bug ? This will tell you whether the issue is with your project file or your copy of GameSalad.
  • ZandoomaZandooma Member Posts: 6
    It did turn out to be that particular project. A fresh one works correctly. Thank you guys so much for the help!
Sign In or Register to comment.