|
| DizzyAGE Help Need help with using DizzyAGE then look here |

31-08-10, 07:40 PM
|
 |
Senior Member
|
|
Join Date: Apr 2007
Location: Yorkshire
Posts: 678
|
|
Quote:
Originally Posted by delta
Yes, you missed this bit:
just use the G_WATERX and G_WATERY variables when you respawn after water death, rather than the P_XSAFE and P_YSAFE variables.
|
I thought must be that bit but im not understanding this part, is this suppose to be in the main game code or still in Handlers ? If it's in the main code how should it be..
EDITS..Just looking in Player script part for the respawn..dunno if this is where I should be doing it.
Last edited by Lord Dizzy of Yolkfolk; 31-08-10 at 08:04 PM.
|

31-08-10, 08:07 PM
|
 |
Coding Geek
|
|
Join Date: Feb 2007
Location: North West
Posts: 2,978
|
|
just put the following in game.gs, where X is the death number:
Code:
func PlayerRespawn_X() // drown death
{
// respawn
SamplePlay(FX_RESPAWN);
PlayerSet(P_DEATH, 0);
PlayerSet(P_LIFE, 100);
PlayerSet(P_X, GameGet(G_WATERX));
PlayerSet(P_Y, GameGet(G_WATERY));
PlayerEnterIdle();
MusicFade(0,3);
MusicRestore();
}
it's basically a copy of the respawn code, but as the game automatically looks for custom respawn coding (in function PlayerLoseLife() in player.gs), it will use the above code for deaths of that 'death number', rather than calling the standard respawn code.
__________________
At first it seemed a little speck,
And then it seemed a mist;
It moved and moved, and took at last
A certain shape, I wist.
A speck, a mist, a shape, I wist!
And still it neared and neared:
As if it dodged a water-sprite,
It plunged and tacked and veered.
|

31-08-10, 08:33 PM
|
 |
Senior Member
|
|
Join Date: Apr 2007
Location: Yorkshire
Posts: 678
|
|
Ok ive added that to game.gs, so how do you assign the death number for being under water as you can't assign it to the brush as you would do with say the the under creatures. Ive also added below in the player file or is this just the same as in game.gs...
func PlayerRespawn()
{
// respawn
SamplePlay(FX_RESPAWN);
PlayerSet(P_LIFE, 100);
PlayerSet(P_X, PlayerGet(P_XSAFE));
PlayerSet(P_Y, PlayerGet(P_YSAFE));
if (PlayerGet(P_DEATH)==3) //water death
{
PlayerSet(P_X, GameGet(G_WATER  );
PlayerSet(P_Y, GameGet(G_WATERY));
}
PlayerSet(P_DEATH, 0);
PlayerEnterIdle();
MusicFade(0,3);
MusicRestore();
}
|

31-08-10, 08:37 PM
|
 |
Coding Geek
|
|
Join Date: Feb 2007
Location: North West
Posts: 2,978
|
|
Quote:
Originally Posted by Lord Dizzy of Yolkfolk
func PlayerRespawn()
{
// respawn
SamplePlay(FX_RESPAWN);
PlayerSet(P_LIFE, 100);
PlayerSet(P_X, PlayerGet(P_XSAFE));
PlayerSet(P_Y, PlayerGet(P_YSAFE));
if (PlayerGet(P_DEATH)==3) //water death
{
PlayerSet(P_X, GameGet(G_WATER  );
PlayerSet(P_Y, GameGet(G_WATERY));
}
PlayerSet(P_DEATH, 0);
PlayerEnterIdle();
MusicFade(0,3);
MusicRestore();
}
|
that code works fine too. It's similar to what I used to use way back when. I'll not be a mo with the other query...
You don't need the code for game.gs if you've used that code. similarly, if you're using it in game.gs, you don't need to modify the above code as you've done.
EDIT:: knew i'd posted it somewhere recently. It's here: http://www.yolkfolk.com/bb/showthread.php?t=1517
__________________
At first it seemed a little speck,
And then it seemed a mist;
It moved and moved, and took at last
A certain shape, I wist.
A speck, a mist, a shape, I wist!
And still it neared and neared:
As if it dodged a water-sprite,
It plunged and tacked and veered.
Last edited by delta; 31-08-10 at 08:41 PM.
|

31-08-10, 09:20 PM
|
 |
Senior Member
|
|
Join Date: Apr 2007
Location: Yorkshire
Posts: 678
|
|
Thanks Jamie, im getting the correct death message under water now by being able to input it there.
Testing is given me a problem still
Dizzy (Junior) isn't respawning to last safe position but to a blank black screen that is at the edge of the map area and is frozen...puzzled..
EDITS :- Seems to be moving me to random parts of the map...
Not sure what is wrong...and I think you won't really beable to help any further..
If I can't get it working might have to put an action warning notice into the game itself..
Last edited by Lord Dizzy of Yolkfolk; 31-08-10 at 09:30 PM.
|

31-08-10, 10:08 PM
|
 |
Coding Geek
|
|
Join Date: Feb 2007
Location: North West
Posts: 2,978
|
|
odd. you haven't already defined variables 105 and 106 have you? If so, you need to define G_WATERX and Y as different numbers.
__________________
At first it seemed a little speck,
And then it seemed a mist;
It moved and moved, and took at last
A certain shape, I wist.
A speck, a mist, a shape, I wist!
And still it neared and neared:
As if it dodged a water-sprite,
It plunged and tacked and veered.
|

01-09-10, 06:46 PM
|
 |
Senior Member
|
|
Join Date: Apr 2007
Location: Yorkshire
Posts: 678
|
|
Quote:
Originally Posted by delta
odd. you haven't already defined variables 105 and 106 have you? If so, you need to define G_WATERX and Y as different numbers.
|
No I haven't used those numbers previously, is puzzling..
|

01-09-10, 08:50 PM
|
 |
Coding Geek
|
|
Join Date: Feb 2007
Location: North West
Posts: 2,978
|
|
Quote:
Originally Posted by Lord Dizzy of Yolkfolk
No I haven't used those numbers previously, is puzzling..
|
if you send me a beta version, I can have a look at it if you want.
__________________
At first it seemed a little speck,
And then it seemed a mist;
It moved and moved, and took at last
A certain shape, I wist.
A speck, a mist, a shape, I wist!
And still it neared and neared:
As if it dodged a water-sprite,
It plunged and tacked and veered.
|

01-09-10, 09:17 PM
|
 |
Coding Geek
|
|
Join Date: Feb 2007
Location: North West
Posts: 2,978
|
|
hmmm I've just looked at the code again, and as far as I can see, it's fine. There must be something conflicting with it, or something else that is overriding it. I have no idea what, but all the code that I've given you - including the bit you put into player.gs - should work fine.
__________________
At first it seemed a little speck,
And then it seemed a mist;
It moved and moved, and took at last
A certain shape, I wist.
A speck, a mist, a shape, I wist!
And still it neared and neared:
As if it dodged a water-sprite,
It plunged and tacked and veered.
|

02-09-10, 09:32 PM
|
 |
Senior Member
|
|
Join Date: Apr 2007
Location: Yorkshire
Posts: 678
|
|
Quote:
Originally Posted by delta
if you send me a beta version, I can have a look at it if you want.
hmmm I've just looked at the code again, and as far as I can see, it's fine. There must be something conflicting with it, or something else that is overriding it. I have no idea what, but all the code that I've given you - including the bit you put into player.gs - should work fine.
|
It's probably something on my part as im sure if you was doing it, it would be working, anyway I think whenever the game gets nearing completion and release I may send it to you & let you have a look and see if you can sort it...I may have to remind you by then lol..
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
All times are GMT. The time now is 03:47 AM.
|
|