activation regions

Non-platform specific questions.

activation regions

Postby BlarghNRawr » Tue Aug 12, 2008 10:10 pm

how can i reset everything in an activation region while the view actor is still on it?
Download Game Music
current projects:
Bold! ?% Started mechanics
Unnamed puzzle game 60% --i need a name!--
User avatar
BlarghNRawr
 
Posts: 767
Joined: Wed Jun 25, 2008 12:36 am
Location: Not using G-E anymore. Now using Source SDK.
Score: 27 Give a positive score

Re: activation regions

Postby Thanx » Thu Aug 14, 2008 8:21 am

Well I don't know how you could do it by strictly keeping it inside the region, but I do have an idea for how to do this in a way, that it looks like you've done it that way.

In the action at which you reset the game, (oh, ya, make 2 variables to store the current position of the view in) and do this:
variable1 = view.x;
variable2 = view.y;
view.x = a far distant place out of the region...;
view.y = a far distant place out of the region...;
//Now that makes the view go out of the region. Now to bring it back, and reload the region, make a timer, and create it
//on view. Make the timer something like 20 miliseconds long, so it will all happen so fast, the player may maximum see a
//flicker!
CreateTimer(view, .......);

That's it for that, except we need an action in the view for the timer: So in the timer event of the view do this:
view.x = variable1;
view.y = variable2;

That's it! Now that doesn't keep it in the region, but that all will happen so fast (~20miliseconds) that you can hardly tell you did anything! Hope that works! :wink: :D
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score

Re: activation regions

Postby BlarghNRawr » Fri Aug 15, 2008 3:28 am

could i do the same thing with a path that leaves the region then comes back...
to eliminate the variables?
(im not good with those :lol: )
Download Game Music
current projects:
Bold! ?% Started mechanics
Unnamed puzzle game 60% --i need a name!--
User avatar
BlarghNRawr
 
Posts: 767
Joined: Wed Jun 25, 2008 12:36 am
Location: Not using G-E anymore. Now using Source SDK.
Score: 27 Give a positive score

Re: activation regions

Postby Thanx » Fri Aug 15, 2008 9:50 am

Yes, that's perfectly fine too! ;) :D :mrgreen:
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score

Re: activation regions

Postby BlarghNRawr » Fri Aug 15, 2008 11:22 pm

cool it worked 4 my level reset...
i just had 2 change a few other things
Download Game Music
current projects:
Bold! ?% Started mechanics
Unnamed puzzle game 60% --i need a name!--
User avatar
BlarghNRawr
 
Posts: 767
Joined: Wed Jun 25, 2008 12:36 am
Location: Not using G-E anymore. Now using Source SDK.
Score: 27 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron