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: Effects, techniques and various solutions  (Read 3003 times)

0 Members and 1 Guest are viewing this topic.

organican

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 74
    • View Profile
Effects, techniques and various solutions
« on: November 04, 2004, 05:59:37 PM »

Just downloade the game enclosure and started playing it, when in the intro the screen was shaking.
Then I remembered people here talking about a shakescreen effect (like in MI2 the elevator?),
and at the same time I realized this should be possible with moving the "camera position".
Any thoughts?

(Camera Left<- Sleep 50 camera right -> Sleep 50 etc)

And it would be really great if we could all just share our solutions and techniques to various situations and dilemmas and put them in this great WME techniques and ideas document.

Any thoughts, guys...?

So in this case, if we take the MI2 elevator as an example, you can have your shakescreen by changing the camera positon back and forth (after detaching it, making it stop filming the main character, and then having it follow the character again as usual).

You could also have it follow an invisible object, I guess... Cool...)

I can really see this making a game more dynamic and stuff.

Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Effects, techniques and various solutions
« Reply #1 on: November 04, 2004, 06:02:13 PM »

Check this thread for a simple screen-shaking routine. It's not perfect, but works :)
http://forum.dead-code.org/index.php?topic=323.0
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

organican

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 74
    • View Profile
Re: Effects, techniques and various solutions
« Reply #2 on: November 04, 2004, 06:20:23 PM »

Dang. I had it working my way.

Game.MainObject = null;

global shake;
while(shake==true)
{Scene.SkipTo(400, 100);
Sleep(98);
Scene.SkipTo(407, 100);
Sleep(98);
}
Game.MainObject = actor;

Of course the scene have to be just a little bit bigger than the actual window size..
But otherwise... great.. and... all..

Everytime you think you're a genious someone else takes you down to the ground and smash your lilttle bones to pieces. :'( :D
And still... that was only half my "thing" for this thread.
What I meant was we go together as one big happy family and sing we are the world and jesus saves and share our techniques and stuff from the scripting field.
« Last Edit: November 04, 2004, 06:42:09 PM by organican »
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Effects, techniques and various solutions
« Reply #3 on: November 04, 2004, 07:18:40 PM »

Everytime you think you're a genious someone else takes you down to the ground and smash your lilttle bones to pieces. :'( :D
Eugh... that was not an intention :)) You solution is good, and...cleaner I think. Of course providing the user can make the scene a bit larger.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.017 seconds with 19 queries.