Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Events... don't work.

LAVOS5

Member

Sorry if this makes me look like a total newbie, but I'm having considerable trouble working with events. Quite simply, whenever any of my events finish executing, the character suddenly becomes immobile. If the last action was a text command, I get a blank textbox when this 'freeze' happens, as well.

This happens with all types of map event in any location. Is there something I'm missing, e.g., a command I must use to exit an event?

Thanks,
--Lavos
 

Rare

Member

If your event is set to 'auto run' you need to add a switch.

Like this:

Event Page > Last line of event commands > Control self switch A (Or B, C, or D) > New Event Page > (New Page) Click the box that says 'local switch' > Make sure the new page is set to 'action button'!.

Hope that helps.
 

LAVOS5

Member

Thanks, but it didn't seem to work.

I just tried setting up another moving event in the area, and when it freezed, that event stopped moving, too.

So, it seems that the whole game is freezing when an event ends. Any reason why it might be doing this?

--Lavos
 
Questions you have to ask and confirm:

System:
1. How fast is my PC?
2. Am i using the legal version?
3. Do i have the RGSS102E.dll?

Game:
1. Have i tried making another clean, new, project?
2. Is my event activated by Action button, Parallel Process or Autorun?
3. What other event commands came before the text event command?

Make an event that has these settings for experimentation:
http://img404.imageshack.us/img404/104/73494310fr8.jpg[/IMG]

If it doesnt work, make a project, make an event that makes your game crash, then upload here for us to check. :)
 

LAVOS5

Member

System:
1. How fast is my PC? 1600 MHz processor, 512 MB of RAM
2. Am i using the legal version? Yes.
3. Do i have the RGSS102E.dll? Yes.

Game:
1. Have i tried making another clean, new, project? Yes, same problems were intact.
2. Is my event activated by Action button, Parallel Process or Autorun? I've tried all three; same thing for each.
3. What other event commands came before the text event command? "Change items" and "Control Switches". I suspect my problem is with the latter, the example you gave above worked alright.

EDIT: Yeah, it seems the "control switches" command was the culprit; after removing that, it worked fine. The catch now is, I can't set switches, which is a bit of a problem.
 
Its easy, just activate a Control Switch using the "Control Switches" event command using the event or another event, then turn that event off to activate the switch only once.

AND!!! Make sure you're not activating around 10 switches at once.
And make sure if you dont require the switch to be active all the time, switch it off..
If the event that activates it is an AUTORUN or PARALLEL, make sure that event stops it from infinitely switching..

If you want your current event to have that certain control switch you want, set it there, but..... Okay, complicated, screenie time:

Here is page 1 of an event:
http://img211.imageshack.us/img211/6629/66118699pj4.jpg[/img]

And here's the page 2 of that same event:
http://img249.imageshack.us/img249/8082/97884603dx2.jpg[/img]


Since the 2nd page of the event is also triggered by the player's action button(ENTER), you will have to talk to him the second time for him to say BYE and disappear...
Try it out...
 
TrueWisdom, its not likely to screw up coz he posted his PC specs and its above the minimum requirement.

LAVO, think of the pages as linked.
Page 1 is linked to page 2 using the SELF SWITCH. In page 1, the Self Switch A is triggered after he says HELLO.. Then it goes to page 2, which is active ONLY IF SELF SWITCH A IS TRIGGERED. Basic sense really..
 
I tried doing this on my existing game and a new file.. and in both the NPC just doesn't appear??

Am I missing something? I copied the screenshots exactly.

I'm really confused because no matter what I do I can't get an npc to disappear, they just walk where I want them and freeze in place. If I add Erase Event anywhere in the script the npc never shows up to begin with.
 

Inky86

Member

I am having the same problem. It is a cut scene so a when a character transports to a new map, the NPC starts talking and then walks to the door. The only thing being he doesn't disappear and I'm immobile. Any help?
 
If you read the posts above, you should know how to use self switches-- after the NPC moves, put a Wait for Move's Completion, then put self switch A = on, and make a new page with conditions: Self switch A == on.

If you already did that, check Despain's method. Try doing Ignore if Can't Move, and if the NPC stops before a tile, you'll know it's impassible.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top