00:00
00:00
Newgrounds Background Image Theme

markololohands just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Different game events.

580 Views | 3 Replies
New Topic Respond to this Topic

Different game events. 2006-08-08 05:13:14


Hi,

I'm making a game and I was wondering if there was a easy way to keep track of events e.g. like on pokemon if you collect a pokeball it will stay gone or if you need to talk to someone before going out of an area it will keep stopping you leaving until you have talked to that person.

Response to Different game events. 2006-08-08 11:42:08


I'd say just make an object that holds all the variables that you find relevant. Like, if you don't want them to leave an area, set canLeave to false and then check it before you load up the next area. Then, when the character talks to the relevant person, set canLeave to true.

Just an example.

Response to Different game events. 2006-08-08 11:43:05


not really

Response to Different game events. 2006-08-08 11:44:50


ok sorry for double post but can someone explain how i do these and maybe a explaination if the codes.