Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-19-2004, 09:46 PM
Raelyn Raelyn is offline
the Professional.
Raelyn's Avatar
Join Date: Sep 2003
Location: Zormite
Posts: 964
Raelyn will become famous soon enough
Moving landscape challenge.

Ok, I wasn't sure what category this falls under, as far as graphics or scripting, but I am going to post it here.

I am trying to make the landscape beneath the player, constantly moving, and I am not sure if there was a way to script this, or if it should be done graphically, like with an animation that makes it look like the ground is moving when it's actually not. What I want is the ground to always look like the player is moving north very fast, and if they move south, it should look slower, and if they move north, it should look faster. Any thoughts? I'm not sure if tiledef2 can use mngs to replace the tileset or something, but, I am running out of ideas here.

Also, I just thought of this, (not really worried about it just yet, but thought I'd throw it in) while online, is there a way to make the speeding up and slowing down effect player specific and seperate for each player on the level?

Thanks for help and suggestions in advance.
__________________
*Don't let the door hit you on the way out.*
Reply With Quote
  #2  
Old 06-19-2004, 10:41 PM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
Hmm... need to know what it is used for. If it's just a temporary animation where the player is not actually moving but appears to be moving, then you could just do a gani and would be better done graphically. However, if it's where the player actually moves, there are a couple ways to do it. I don't see why you wouldn't just do regular large levels, bu the second way is to constantly do updateboard clientsided and have it do something such as tiles[x,y] = tiles[x,y-1]; to get the tile right above it. Need more information on what you're wanting to do.
-Projectshifter
__________________
Who has time for life these days?
Reply With Quote
  #3  
Old 06-19-2004, 11:36 PM
Raelyn Raelyn is offline
the Professional.
Raelyn's Avatar
Join Date: Sep 2003
Location: Zormite
Posts: 964
Raelyn will become famous soon enough
Ok, I'm trying to make something similar to the player flying "north" and it's constant, not temporary, it will continue to do this the entire time, the player should be able to move north, east, south and west, but if the player moves north, the ground beneath them should go by faster, and if they move south, it should slow down. So, it basically shows accurate physics of the speeding up, and slowing down process as well as the ground below them constantly looking like it's moving. Is that more helpful?
__________________
*Don't let the door hit you on the way out.*
Reply With Quote
  #4  
Old 06-20-2004, 01:26 AM
Polo Polo is offline
Classic Systems Admin
Join Date: Sep 2002
Location: Vancouver, Canada
Posts: 735
Polo is on a distinguished road
Send a message via AIM to Polo
Because of what your describing, I dont think changing the tiles would suit you. instead you should have a fixed ground surface, somthing plain, like straight green, so players dont realise, and then a series of showimages for things such as trees, bushes etc...

These images would wrap around the screen and have varying speeds and directions depending on which way the user is 'flying', and would all be shown clientside. This would (i think) give you the effect you want, and would have the smoothest motion of the suggested methods.

'If' i'm not too busy, I'll probably cook somthing up for you if you ask nicely.
__________________
Be good little players, or Master Storm will ban you!



Proof that the staff are crazy..
*Ghost Pirate: I'm a little teacup short and stubbe here is my raygun here is my butt
DragonX: Jumping jack rabbits Batman! Our eggo waffles have been stolen! To the batmobile Robin!
X-Mann (RC): I have a head ache
Reply With Quote
  #5  
Old 06-20-2004, 03:25 AM
Raelyn Raelyn is offline
the Professional.
Raelyn's Avatar
Join Date: Sep 2003
Location: Zormite
Posts: 964
Raelyn will become famous soon enough
Well, if what you're suggesting would allow for multiple players to be "flying" on the same level and actually be able to move about the level and around each other while still giving the look of flying, that sounds great. Not that the player would just be in the middle of the screen standing there or something while it moved around them.
__________________
*Don't let the door hit you on the way out.*
Reply With Quote
  #6  
Old 06-20-2004, 05:20 AM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
Quote:
Originally Posted by Polo
Because of what your describing, I dont think changing the tiles would suit you. instead you should have a fixed ground surface, somthing plain, like straight green, so players dont realise, and then a series of showimages for things such as trees, bushes etc...

These images would wrap around the screen and have varying speeds and directions depending on which way the user is 'flying', and would all be shown clientside. This would (i think) give you the effect you want, and would have the smoothest motion of the suggested methods.

'If' i'm not too busy, I'll probably cook somthing up for you if you ask nicely.
I disagree with this. This is more of a local thing, and wil not be valid for each person. If you're wanting it to move faster in one direction, the most obvious concept would be a custom movement system. Just increase the rate of flying north vs. flying south or another direction. That way it stays valid for all players, not just the local player.
-Projectshifter
__________________
Who has time for life these days?
Reply With Quote
  #7  
Old 06-20-2004, 06:05 AM
Raelyn Raelyn is offline
the Professional.
Raelyn's Avatar
Join Date: Sep 2003
Location: Zormite
Posts: 964
Raelyn will become famous soon enough
Ok, so, I'm entirely lost here, was my explanation fubar? Is this an impossible concept? Have I just done my usual thing and thought of something completely off the wall that no one has ever cared about doing before?


Note: Don't bother making a ciggarette lighter adapter for your toaster, making toast in your car is messy.
__________________
*Don't let the door hit you on the way out.*
Reply With Quote
  #8  
Old 06-20-2004, 09:15 AM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
a NAT i once hired on babylon did something similar to what your asking, except he only incorporated left to right movment, but when you went with it you went faster as if you went towards it, you went slower. "fighting the current"

The movement and everything was pretty smooth, done with default movement too.
__________________
Reply With Quote
  #9  
Old 06-20-2004, 10:44 AM
Polo Polo is offline
Classic Systems Admin
Join Date: Sep 2002
Location: Vancouver, Canada
Posts: 735
Polo is on a distinguished road
Send a message via AIM to Polo
Quote:
Originally Posted by Raelyn
is there a way to make the speeding up and slowing down effect player specific and seperate for each player on the level?
I was confused by this. If your speeding up and slowing down, with multiple players on the level, then you going to need to move players around the screen, and then have a backroungd which wraps at a constant speed (I still think changing the tiles would look ugly here).
__________________
Be good little players, or Master Storm will ban you!



Proof that the staff are crazy..
*Ghost Pirate: I'm a little teacup short and stubbe here is my raygun here is my butt
DragonX: Jumping jack rabbits Batman! Our eggo waffles have been stolen! To the batmobile Robin!
X-Mann (RC): I have a head ache
Reply With Quote
  #10  
Old 06-20-2004, 07:44 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
don't undertake projects that are more advanced than your skills
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #11  
Old 06-20-2004, 08:18 PM
Trevor Trevor is offline
True
Trevor's Avatar
Join Date: Mar 2003
Posts: 2,253
Trevor is on a distinguished road
Thats stupid. If you don't, how will you learn? I do projects all the time in C in which I don't have to skills or knowledge to complete when I begin, but that is how you learn.
__________________


name: Trevor Fancher
email: trevor at fancher dot org
home page: fancher.org
Reply With Quote
  #12  
Old 06-20-2004, 10:34 PM
nonis nonis is offline
Registered User
nonis's Avatar
Join Date: May 2004
Posts: 19
nonis is on a distinguished road
me too...thats how i became a scripter...though i cant script very advanced things i still try
Reply With Quote
  #13  
Old 06-20-2004, 10:55 PM
Malinko Malinko is offline
Unholy Nation
Join Date: Mar 2004
Location: Massachusetts, U.S.A.
Posts: 1,782
Malinko is on a distinguished road
Send a message via AIM to Malinko
You can just make an image with setshape2 and make that move around. Cloud from Valikorlia had something like that, he made his own image, with lights around, which a nice shadow below it about 20 y coordinates. Other than that, doing it with tile arrays, that would just be a waste of time.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:07 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.