The Daily Click ::. Forums ::. Klik Coding Help ::. another problem in my long*hint-hint*game
 

Post Reply  Post Oekaki 
 

Posted By Message

Xio



Registered
  21/01/2008
Points
  218
1st February, 2008 at 11:12:28 -

the big problem i found in my game is that my levels are long...i mean long and very hard..

so anyone know how make save points or checkpoints?

to see my game search my youtube name---- kenduru

Image Edited by the Author.

 
Squigy my blob

maker of music
8-bit music though

NeoMonkey

Finnish Army Fire Commander

Registered
  01/12/2006
Points
  243

VIP Member360 OwnerI am an April FoolPS3 Owner
1st February, 2008 at 15:46:37 -

Well if you have one big solid map, then you put an object and when player touches it player objects value A becomes like 1. When player dies and value A=1, then set the player coordinates (0,0), from checkpoint.

And if ya make save system use ini or array object, but i succest array.

 
I have proven new mathematic formula to be true...

2D > 3D

Image


Xio



Registered
  21/01/2008
Points
  218
1st February, 2008 at 17:32:56 -


Originally Posted by Mauri Mahtava
Well if you have one big solid map, then you put an object and when player touches it player objects value A becomes like 1. When player dies and value A=1, then set the player coordinates (0,0), from checkpoint.

And if ya make save system use ini or array object, but i succest array.





umm...im using mmf...so when he dies select position to the object???

 
Squigy my blob

maker of music
8-bit music though

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
1st February, 2008 at 21:02:07 -

Make an object, make it whatever you want so long as it's an active object. And place it in the middle of the level or wherever you want it.

Now normally all active object's flags are all off by default.

so when the player touches the object it turns a flag on. lets say flag 0 for now.

so when the player dies and flag is off set the player's position to start of level,
when the player dies and the flag is on set the player's position next to the object you just made.

you will have a problem if your player dying involves restart the frame, since flags aren't remembered if you change frames or jump to the same frame.

so instead you can use a a global value,and use 0 and 1 instead of off and on.


 
.

Xio



Registered
  21/01/2008
Points
  218
2nd February, 2008 at 11:05:20 -


Originally Posted by I am AndyUK (honest)
Make an object, make it whatever you want so long as it's an active object. And place it in the middle of the level or wherever you want it.

Now normally all active object's flags are all off by default.

so when the player touches the object it turns a flag on. lets say flag 0 for now.

so when the player dies and flag is off set the player's position to start of level,
when the player dies and the flag is on set the player's position next to the object you just made.

you will have a problem if your player dying involves restart the frame, since flags aren't remembered if you change frames or jump to the

same frame.

so instead you can use a a global value,and use 0 and 1 instead of off and on.




when i try to set a global vaule to 0 and 1 it says cannot understand your expresion please correct it or press cancel and the flags one i didnt know how to set it up

 
Squigy my blob

maker of music
8-bit music though

NeoMonkey

Finnish Army Fire Commander

Registered
  01/12/2006
Points
  243

VIP Member360 OwnerI am an April FoolPS3 Owner
2nd February, 2008 at 12:47:00 -

Do like this:

Collision Between [Player] and [Checkpoint]
- Set Global value A to 1

Number of [Player]=0
-Set [Player position] (0,0) from [Checkpoint]

 
I have proven new mathematic formula to be true...

2D > 3D

Image


Mr. Waffle



Registered
  29/12/2007
Points
  103
2nd February, 2008 at 12:55:56 -

If you want checkpoints within one level, you could create an invisible object that the player spawns at when dead.
Then when the player touches a checkpoint-object, you just set the invisible objects position to the checkpoints position.

And ofcourse you have to place the invisible object at the player, at the start of the level.

Image Edited by the Author.

 
n/a

Xio



Registered
  21/01/2008
Points
  218
2nd February, 2008 at 13:28:59 -


Originally Posted by Mauri Mahtava
Do like this:

Collision Between [Player] and [Checkpoint]
- Set Global value A to 1

Number of [Player]=0
-Set [Player position] (0,0) from [Checkpoint]




nothing happens
man...this is very complicated ;/ but i need to know

 
Squigy my blob

maker of music
8-bit music though

Mr. Waffle



Registered
  29/12/2007
Points
  103
2nd February, 2008 at 13:46:11 -

Eh, just made an example. Made it as easy as I could
http://www.mediafire.com/?0m00y7rtmem

You should be able to open it in MMF, no extensions or anythin'

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
2nd February, 2008 at 13:47:07 -

http://rapidshare.com/files/88659760/example.zip.html

try this example file

 
.

Mr. Waffle



Registered
  29/12/2007
Points
  103
2nd February, 2008 at 13:51:58 -

Haha, both posted at the same time.

And yeah, didn't comment the example, sorry; but you should get it if you just look around in the coding a bit.


If you also want to know how to save which level the player is on, just ask.
It's all really easy.

 
n/a

Xio



Registered
  21/01/2008
Points
  218
2nd February, 2008 at 15:02:30 -


Originally Posted by I am AndyUK (honest)
http://rapidshare.com/files/88659760/example.zip.html

try this example file





IT WORKED BUT....when i kill a monster and then i go to the save point the monster is still dead i dont want that :/

 
Squigy my blob

maker of music
8-bit music though

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
2nd February, 2008 at 16:10:57 -

just make it so when it sets you back at the save point, make all the enemies (or whatever ones you want) to be created on the screen in their proper places.

 
n/a

Xio



Registered
  21/01/2008
Points
  218
2nd February, 2008 at 16:39:10 -


Originally Posted by cec¿l
just make it so when it sets you back at the save point, make all the enemies (or whatever ones you want) to be created on the screen in their proper places.






nothing...it didnt work and when i got back to save point i can't shoot

 
Squigy my blob

maker of music
8-bit music though

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
3rd February, 2008 at 07:17:07 -

Well you need to restart the level for the enemies to reappear. However i'm fairly sure the flag resets if you go to the same level. (use 'jump to frame')

so yoo need to use a global value like i mentioned previously.

 
.

NeoMonkey

Finnish Army Fire Commander

Registered
  01/12/2006
Points
  243

VIP Member360 OwnerI am an April FoolPS3 Owner
3rd February, 2008 at 08:24:01 -

Huoh...

Add 2 or more objects.

1.Player
2.Checkpoint 1
3. more checkpoints if ya want.

Events:
Start of frame
-Set Global value to 0

Collision between [Player] and [Checkpoint]
+Global value A = 0
-Set Global value A to 1

Collision between [Player] and [Checkpoint2]
+Global value A = 1
-Set Global value A to 2

This depends how many checkpoints you use...

Then:

Last [Player] has been destroyed
-Restart the current frame

Start of frame
+Global value A=0
- Set position (x,y) ((x,y) is your original starting coordinates)

Start of frame
+Global value A=1
- Set position at (0,0) from [Checkpoint]

Start of frame
+Global value A=2
- Set position at (0,0) from [Checkpoint2]

And so on if ya have more than 2 checkpoints. This should work.

Edit: And it worked for me.

Image Edited by the Author.

 
I have proven new mathematic formula to be true...

2D > 3D

Image


Xio



Registered
  21/01/2008
Points
  218
3rd February, 2008 at 12:36:39 -


Originally Posted by Mauri Mahtava
Huoh...

Add 2 or more objects.

1.Player
2.Checkpoint 1
3. more checkpoints if ya want.

Events:
Start of frame
-Set Global value to 0

Collision between [Player] and [Checkpoint]
+Global value A = 0
-Set Global value A to 1

Collision between [Player] and [Checkpoint2]
+Global value A = 1
-Set Global value A to 2

This depends how many checkpoints you use...

Then:

Last [Player] has been destroyed
-Restart the current frame

Start of frame
+Global value A=0
- Set position (x,y) ((x,y) is your original starting coordinates)

Start of frame
+Global value A=1
- Set position at (0,0) from [Checkpoint]

Start of frame
+Global value A=2
- Set position at (0,0) from [Checkpoint2]

And so on if ya have more than 2 checkpoints. This should work.

Edit: And it worked for me.

Image Edited by the Author.







nothing...didnt work any other ways

 
Squigy my blob

maker of music
8-bit music though

NeoMonkey

Finnish Army Fire Commander

Registered
  01/12/2006
Points
  243

VIP Member360 OwnerI am an April FoolPS3 Owner
3rd February, 2008 at 14:25:41 -

But it works! You are just evo. But if you are using like tgf, then I'm not sure but it works on mmf1 and 2.

 
I have proven new mathematic formula to be true...

2D > 3D

Image


Xio



Registered
  21/01/2008
Points
  218
3rd February, 2008 at 18:34:49 -


Originally Posted by Mauri Mahtava
But it works! You are just evo. But if you are using like tgf, then I'm not sure but it works on mmf1 and 2.




send my like a example because none of these lessons help

 
Squigy my blob

maker of music
8-bit music though

Xio



Registered
  21/01/2008
Points
  218
3rd February, 2008 at 18:58:51 -


Originally Posted by I am AndyUK (honest)
Well you need to restart the level for the enemies to reappear. However i'm fairly sure the flag resets if you go to the same level. (use 'jump to frame')

so yoo need to use a global value like i mentioned previously.





i got it yes!!! but i might post again if there is a problem ...

 
Squigy my blob

maker of music
8-bit music though

Mr. Waffle



Registered
  29/12/2007
Points
  103
3rd February, 2008 at 19:03:12 -

Bleh, I made it as easy as I could:
http://www.mediafire.com/?a1zf2dvdayp

You can have as many checkpoints as you want. If you only want one, then just delete the other checkpoints. x]

 
n/a

Xio



Registered
  21/01/2008
Points
  218
3rd February, 2008 at 19:35:26 -


Originally Posted by I am AndyUK (honest)
Well you need to restart the level for the enemies to reappear. However i'm fairly sure the flag resets if you go to the same level. (use 'jump to frame')

so yoo need to use a global value like i mentioned previously.






thats a problem i dont know how

 
Squigy my blob

maker of music
8-bit music though

Xio



Registered
  21/01/2008
Points
  218
3rd February, 2008 at 19:36:56 -


Originally Posted by Mozart
Bleh, I made it as easy as I could:
http://www.mediafire.com/?a1zf2dvdayp

You can have as many checkpoints as you want. If you only want one, then just delete the other checkpoints. x]





nice but i need one that can shoot and kill objects when i kill them they stay killed and i dont know how to make appear again


 
Squigy my blob

maker of music
8-bit music though

Mr. Waffle



Registered
  29/12/2007
Points
  103
3rd February, 2008 at 19:56:23 -

Eh, they will re-appear in my examp...
-sigh- Nevermind, I give up. Good luck.

 
n/a

Xio



Registered
  21/01/2008
Points
  218
4th February, 2008 at 15:49:22 -


Originally Posted by Waffle
Eh, they will re-appear in my examp...
-sigh- Nevermind, I give up. Good luck.




OOOOOOOOOOOOOOOOOOOOOOOOOOO I FOUND OUT

thanks man <----tears of joy

 
Squigy my blob

maker of music
8-bit music though
   

Post Reply



 



Advertisement

Worth A Click