Activation Regions

Non-platform specific questions.

Re: Activation Regions

Postby skydereign » Sun Aug 21, 2011 6:30 am

When you leave an activation region, all actors in it are destroyed, but are recreated when you enter again. The only ones ever fully destroyed from the region are ones destroyed with the DestroyActor call.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Activation Regions

Postby foleyjo » Sun Aug 21, 2011 8:30 am

Thanks Sky

just 1 further question relating to this. My previous question was regarding the view leaving the region but what about actors leaving a region.

I'll use an example. Say in your game you have a rocket launcher. The Rocket is fired up and out of the view and then eventually falls back down to the ground.

When this actor leaves the view is it destroyed?
KISS -Keep It Simple Stoopid
foleyjo
 
Posts: 275
Joined: Mon Jul 09, 2007 1:15 pm
Score: 15 Give a positive score

Re: Activation Regions

Postby lcl » Sun Aug 21, 2011 9:49 pm

foleyjo wrote:Thanks Sky

just 1 further question relating to this. My previous question was regarding the view leaving the region but what about actors leaving a region.

I'll use an example. Say in your game you have a rocket launcher. The Rocket is fired up and out of the view and then eventually falls back down to the ground.

When this actor leaves the view is it destroyed?

Not if it only leaves the view, but if it leaves the activation region, it will if I'm not mistaken.
Of course you can do a little test with a text actor telling the ActorCount() of rocket so you can see is there a rocket or not. :)
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Activation Regions

Postby ESL » Tue Aug 23, 2011 6:24 am

I am still having trouble getting this to work. I want the view to move to view.x=3192 and view.y=-1056 after the enemies 1, 2, and 3 have been destroyed.

Any idea on how to make it work?
Attachments
start.jpg
start.jpg (1.27 KiB) Viewed 1763 times
ship_11_animated.gif
ship_11_animated.gif (6.75 KiB) Viewed 1763 times
laser.GIF
laser.GIF (819 Bytes) Viewed 1763 times
enemy3.GIF
enemy3.GIF (882 Bytes) Viewed 1763 times
enemy2.GIF
enemy2.GIF (873 Bytes) Viewed 1763 times
enemy1.GIF
enemy1.GIF (839 Bytes) Viewed 1763 times
redbrick.GIF
redbrick.GIF (6.64 KiB) Viewed 1763 times
back.jpg
back.jpg (5.86 KiB) Viewed 1763 times
land.jpg
cover2.ged
(62.81 KiB) Downloaded 61 times
ESL
 
Posts: 96
Joined: Mon Jun 28, 2010 2:05 am
Score: 1 Give a positive score

Re: Activation Regions

Postby skydereign » Tue Aug 23, 2011 10:38 am

First, a couple of suggestions that will help you out. One, it is a lot less likely that someone is going to help you if you put the data like that. The best format to upload your ged is to have a directory, with the ged and data directory inside. Of course the data directory will be filled with the images you attached. Then you just zip that up, so we can simply load it and figure out how to help you. Now, my other suggestion is to use the script editor. I managed to load your game, and checked the laser's collision events, and... yeah. You have generally two to three of the same actions for every event, namely collision events tied to lettered actors A-Z. That is a lot of events to look at. Also, each of these actors has a collision event with the laser (which generally is unnecessary). From what I've seen, it would be much easier to instead have a single actor for your A-Z, and use a variable to determine what type of enemy it is. But, back to the point, in script editor, you have one event, that can call those three actions which makes it a lot easier for us to read (and will make it easier for you to read).

Now to address your question, you do not have enemies 1, 2, and 3. So, do you mean for the code to trigger when there are no enemy actors (I am assuming actors A-Z are your enemy actors). If so you would have to either put it in a collision event for every actor, checking if the total number of enemy actors is 1, or use a variable and put that code into draw. I'll need to know more about what you are going to do before continuing, as if you do plan to change things from the way they are now, then the solution will change.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Activation Regions

Postby ESL » Tue Aug 23, 2011 11:46 am

well, long story short, I am an English teacher in Korea and the kids are generally more interested in playing video games than learning English so I want to make a game that causes them to learn English. In the first part, they are attacking the Planet English, which shoots letters at them, then noun and verb spaceships attack. Then second level requires them to complete sentences to go through gates of a city, called Sentence City, in the third level, they ascend a pyramid by translating sentences from Korean to English in order to go up one step. At the top of the pyramid, they are rewarded with The Great Sticker. That is the first game, I have other ideas too, all geared towards making it a challenge that requires them to know English (correctly)to win the game.

Ideally, it would also have voices to teach listening skills and voice response to teach speaking.

I agree, my approach is rather tedious, but I don't know much about programming except from reading and the tutorials.
ESL
 
Posts: 96
Joined: Mon Jun 28, 2010 2:05 am
Score: 1 Give a positive score

Re: Activation Regions

Postby schnellboot » Tue Aug 23, 2011 12:15 pm

I'm Korean
are you 학교선생 oder 학원선생?
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score

Re: Activation Regions

Postby Jagmaster » Tue Aug 23, 2011 12:28 pm

schnellboot wrote:I'm Korean
are you 학교선생 oder 학원선생?


I thought you were German :shock:

Hey, I think it's really cool that you're using GE games as part of a "curriculum". Part of me has always wanted to do that; and I agree, kids will be much less bored and distracted playing a video game. +1 for creative teaching! :D
User avatar
Jagmaster
 
Posts: 875
Joined: Sun May 08, 2011 4:14 pm
Location: Not where you think.
Score: 82 Give a positive score

Re: Activation Regions

Postby schnellboot » Tue Aug 23, 2011 12:36 pm

actually I'm Korean but I live in Germany so.. xD
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score

Re: Activation Regions

Postby Jagmaster » Tue Aug 23, 2011 12:40 pm

Oh, that's cool. :D
User avatar
Jagmaster
 
Posts: 875
Joined: Sun May 08, 2011 4:14 pm
Location: Not where you think.
Score: 82 Give a positive score

Re: Activation Regions

Postby ESL » Tue Aug 23, 2011 12:59 pm

미국사람입니다 대학교 교수 하지만 도 오리니가 가르치요
ESL
 
Posts: 96
Joined: Mon Jun 28, 2010 2:05 am
Score: 1 Give a positive score

Re: Activation Regions

Postby schnellboot » Tue Aug 23, 2011 1:22 pm

hm.. and they're interested in playing games? wow hahas
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score

Re: Activation Regions

Postby ESL » Tue Aug 23, 2011 1:25 pm

The boys seemed to be obsessed with it. The girls, just some. But college students get their fair share in too.
ESL
 
Posts: 96
Joined: Mon Jun 28, 2010 2:05 am
Score: 1 Give a positive score

Re: Activation Regions

Postby schnellboot » Tue Aug 23, 2011 2:10 pm

lol my cousin is studying all day and has no time to think bout games ^^
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score

Re: Activation Regions

Postby ESL » Tue Aug 23, 2011 11:18 pm

Can you give me some examples?

"From what I've seen, it would be much easier to instead have a single actor for your A-Z, and use a variable to determine what type of enemy it is.

If so you would have to either put it in a collision event for every actor, checking if the total number of enemy actors is 1, or use a variable and put that code into draw."
ESL
 
Posts: 96
Joined: Mon Jun 28, 2010 2:05 am
Score: 1 Give a positive score

PreviousNext

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest