Posted By
|
Message
|
SquishyGecko840
Registered 28/11/2008
Points 38
|
6th December, 2008 at 07:35:08 -
how would i go about makeing a platform movment character continue to have the same gun when he goes into the next frame
oh ya
http://www.afrankwillis.com/gallery/pet%20moose.jpg
|
Pixelthief Dedicated klik scientist
Registered 02/01/2002
Points 3419
|
6th December, 2008 at 07:53:04 -
use a Global Value to show which gun the player has. You can find these under the "Special Conditions" object in the event editor. These values will remain the same from frame to frame.
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456
|
SquishyGecko840
Registered 28/11/2008
Points 38
|
6th December, 2008 at 08:56:54 -
there's a problem with that the weapon is part of the person not a seperate object
but good idea
oh ya
http://www.afrankwillis.com/gallery/pet%20moose.jpg
|
Cecilectomy noPE
Registered 19/03/2005
Points 305
|
6th December, 2008 at 09:04:15 -
no, its the answer. its the only idea.
n/a
|
-J-
Registered 05/10/2008
Points 228
|
6th December, 2008 at 09:06:34 -
If the weapons are part of the main character, use the Global Values to store which animation of the character is currently playing.
Something like:
-Always
>Set Global Value A to: Anim Number( "Main Character" )
Or if you're just using different frames of the same animation to define different weapons, store the animation frame using the Global Values.
n/a ...
|
SquishyGecko840
Registered 28/11/2008
Points 38
|
6th December, 2008 at 19:36:34 -
the way we have the weapons is that for each weapon you pick up you
pick up weapon
"main character" overlapping "weapon"
upon pressing down
-destroy "main character"
-create "gun character"
oh ya
http://www.afrankwillis.com/gallery/pet%20moose.jpg
|
-J-
Registered 05/10/2008
Points 228
|
6th December, 2008 at 22:22:26 -
You could still do this with Global Values.
If the gun has been picked up, set a Global Value to 1 or something.
If the player goes to the next frame and hasn't picked up the gun, the Global Value will stay at 0.
Then in the next frame, if the Global Value is 1, make the guy have his gun.
And If the Global Value is 0, then make it so he doesn't have a gun.
n/a ...
|
SquishyGecko840
Registered 28/11/2008
Points 38
|
7th December, 2008 at 21:36:46 -
ok that makes sence but how do i get the global value to be set to 0 at the begining of the application but when i change back and forth between frames it doesn't reset again
oh ya
http://www.afrankwillis.com/gallery/pet%20moose.jpg
|
Knudde (Shab) Administrator
Crazy?
Registered 31/01/2003
Points 5125
|
7th December, 2008 at 21:39:51 -
Globals don't reset over frames. They start at 0 at the start of the game already.
Craps, I'm an old man!
|
Jon Lambert Administrator
Vaporware Master
Registered 19/12/2004
Points 8235
|
7th December, 2008 at 21:41:04 -
Global values start at 0 by default when the application is run, and they stay the same from frame to frame, hence the name global values.
Sandwich Time!Whoo!
JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
http://www.create-games.com/download.asp?id=8364
|
SquishyGecko840
Registered 28/11/2008
Points 38
|
8th December, 2008 at 05:12:08 -
WOOOOOO!!!!! It works!!
Thank you all that helped me.
oh ya
http://www.afrankwillis.com/gallery/pet%20moose.jpg
|
siven I EAT ROCKS
Registered 03/11/2008
Points 604
|
8th December, 2008 at 10:36:05 -
ahh i see, i had it set up on flags on a global object, but everytime you would go to the next frame, it would make 1 extra of the character, glad to know this works, i dont know why hes so determined to do it like this though...
[Game design makes my brain feel like its gonna explode.]
|
|
|