Page 1 of 1

Flying and other things

Posted: September 8th, 2010, 10:47 am
by owenisred
Had a REALLY good idea for a game recently, and sandbox is PERFECT for it in so many ways, but there is a few things that I think would be impossible. I'd like to be proven wrong tho :)

Is there any known way to fly in a game, like in edit mode?

Can you occupy the body of another character? For example, say you walk up to a character and a gui appears above his head, and there is a button that says occupy, then you get to walk around as that character for a while...?

There are other things but those are some of the main ones

Thanks,
Owen.

Re: Flying and other things

Posted: September 8th, 2010, 1:43 pm
by Runescapedj
Questions:
1. Can you use the flying ability (edit mode) in games?
2. Can you change the player models to some other models during games (and leave your own behind)

Answers:
1. Of course you can, but you have to code that, or you can copy the flying code of edit mode and paste it as movement and destroy the main movement (but I don't know how =P)
2. This is pretty hard, idk if it's poss

Well, good luck anyways

Re: Flying and other things

Posted: September 8th, 2010, 5:59 pm
by chocolatepie33
There's a way to simulate flying, but no actual way to make someone/something fly.
Here's how I do it:
I'll change the gravity from 100 (normal) to 10 (lowest). Then I'll change the character's jumpvel(ocity) from 100 to 1000 (highest). This allows the character to float down slowly, somewhat simulating flying. Occasionally I'll combine this with movespeed to make them "fly" faster (movespeed is changed from 100 to 1000).
You can add triggers to do this when a character accesses an area by adding a level trigger that responds to this code:

Code: Select all

level_trigger_1 = [edittoggle; gravity 10; jumpvel 1000; movespeed 1000; edittoggle]
I'm pretty sure the code should work like that...

Re: Flying and other things

Posted: September 9th, 2010, 7:18 am
by owenisred
Yea I know that, i just wish you could actually put gravity to 0 :(

Re: Flying and other things

Posted: September 9th, 2010, 8:59 am
by Runescapedj
you can use water and edit the textures of it?

Re: Flying and other things

Posted: September 9th, 2010, 9:05 am
by owenisred
I dont want it to look like im underwater, what do you mean edit the textures of it - how would that help?

Thanks :)
Owen.

Re: Flying and other things

Posted: September 9th, 2010, 4:01 pm
by Runescapedj
well, if you make the water look like air (so change the colors), maybe you can use that than? (but you still go down while in water, and you've 2 delete the jump action in water than 2

Re: Flying and other things

Posted: September 10th, 2010, 3:33 pm
by arcones
In RPG mode it is technically possible to do a pollymorph with a spell, but that's only if the pollymorph is actually there. Which, if I remember correctly, Hirato said wasn't fully functional yet.

Re: Flying and other things

Posted: September 10th, 2010, 5:40 pm
by chocolatepie33
That's something for the 2.7 wishlist.