Jump to content


Photo

SOLVED Key presses still activate deleted actions


  • Please log in to reply
2 replies to this topic

#1 BlueSkies

BlueSkies

    GMC Member

  • GMC Member
  • 14 posts
  • Version:GM8

Posted 17 April 2012 - 02:35 AM

Seems to be some sort of bug, but in my game I assigned the Next Room action to the key press event for the N key, for the purpose of quickly scrolling through levels while designing and testing. Well I've since removed that action, and the N key press event entirely, but in my game pressing N at certain moments stills skips to the next room. It only happens in certain rooms, in some rooms only happening if I press N immediately after pressing the LMB key (which in my game creates different objects in different locations depending on the mouse x and y positions)

I've tried re adding the N press event and then deleting it again. Also tried adding the N event (into the same object it was previously I should add) but assigning different actions to it other than Next Room, but nothing seems to get rid of the problem. The new actions are executed, but the room still skips (again, only sometimes).

And ideas?


UPDATE: Thanks Desert Dog, you set me on the right track. I had indeed put the n key press event into another object by accident, but it didn't show up with the search script tool because it was the drag and drop Next Room action, not GML. How silly of me :/

Edited by BlueSkies, 17 April 2012 - 05:03 PM.

  • 0

#2 Desert Dog

Desert Dog

    GMC Member

  • Global Moderators
  • 6409 posts
  • Version:Unknown

Posted 17 April 2012 - 03:06 AM

->Scripts ->Search in Scripts.

Type in room_goto_next(); (or whatever function you typically use)

see what comes up.

You've possibly placed the code in another object.
  • 0

#3 BlueSkies

BlueSkies

    GMC Member

  • GMC Member
  • 14 posts
  • Version:GM8

Posted 17 April 2012 - 04:43 PM

Ok, I tried that, but nothing erroneous turned up, only the room_goto_next code that is called when the player fulfills the level's objectives.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users