Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: Game "hanging" in Dialogue when I click like a maniac  (Read 2916 times)

0 Members and 1 Guest are viewing this topic.

goldenTouch

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 26
    • View Profile
    • Spare Time Gaming
Game "hanging" in Dialogue when I click like a maniac
« on: February 18, 2008, 11:11:17 PM »

I have created a dialogue branch.
When the actor or the guy I'm talking to is talking, I'm clicking the left mouse button like a maniac to skip through the dialogues.
When I do this, sometimes the game will stop responding (almost). The game is still responding, but since I have set Game.Interactive to false the player can not do anything.

Have anybody else experienced this?
Is it a bug in WME, or do I need to change something in my code?
I would appreciate it if someone could test on their own, and provide me some feedback.
Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Game "hanging" in Dialogue when I click like a maniac
« Reply #1 on: February 18, 2008, 11:55:25 PM »

post your code here. It works for me even if I fast click.
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

goldenTouch

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 26
    • View Profile
    • Spare Time Gaming
Re: Game "hanging" in Dialogue when I click like a maniac
« Reply #2 on: February 19, 2008, 09:44:15 PM »

Ok. I suspect there is a problem with my placing of the Game.Interactive = false (and true) lines then.
I'll look at it later. However, if anybody wants to help out the code is posted below.
To protect the story of the game, I have scrambled out the text strings within the quotes, but that doesn't matter to the code anyway.

This is the entire code for an actor's script:

EDIT: Removed code so you won't have to look through all of it now that the error has been corrected.
« Last Edit: February 19, 2008, 10:29:22 PM by goldenTouch »
Logged

goldenTouch

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 26
    • View Profile
    • Spare Time Gaming
Re: Game "hanging" in Dialogue when I click like a maniac
« Reply #3 on: February 19, 2008, 10:12:58 PM »

Come to think of it, this may be caused by my action GUI which runs in the background.
When a left click is made, I check to see whether it is being held down. If not, move to the object.
This also causes a different bug which makes the player move towards the other actor even while the Game.Interactive = false.

It may be that this same script is causing the game to halt.
I'll try to add a check to Game.Interactive in this background script to see if I can fix it.
Logged

goldenTouch

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 26
    • View Profile
    • Spare Time Gaming
Re: Game "hanging" in Dialogue when I click like a maniac
« Reply #4 on: February 19, 2008, 10:20:39 PM »

Yup. That fixed it.
I had a code for on "LeftRelease" that played even if the Game.Interactive was false.
One simple if-condition changed that.  ;)
Logged
 

Page created in 0.035 seconds with 22 queries.