The Daily Click ::. Forums ::. Klik Coding Help ::. need some help with saving and loading a level
 

Post Reply  Post Oekaki 
 

Posted By Message

-Athan-

Mad Media

Registered
  21/09/2008
Points
  30

VIP MemberCardboard BoxPS3 Owner
7th October, 2008 at 09:34:46 -

hi, me and my cousin got bored of playing lieroX and we want to play our own game, so i started making a 2 player game and i made a level editor, but i have a problem: i don't know how to save and load. i'm using 3 types of blocks, 2 ramps and a simple block, well when i press SPACE, and i clicked before on a ramp or block from the tool bar, it creates the selected object at (0,0) from the selector. you'll see in the screen what i mean, well, actually if i place 20 blocks, they are copies of an original one. how can i make to save them all and their position? then i would need to know how to load it anyway, any answer will be appreciated and i would appreciate more if you try to give clear answers

Image

and now the actual game

Image

Hope you understood what i want! Have a nice day!

Image Edited by the Author.

 
Visit Sciisoft Support Forum! This is totally new and cool!

http://sciisoft.com

NeoMonkey

Finnish Army Fire Commander

Registered
  01/12/2006
Points
  243

VIP Member360 OwnerI am an April FoolPS3 Owner
7th October, 2008 at 09:50:14 -

Set [saver block] at 0,0 and then set array object 0,0 and then if the blocks are for example 32x32. Then just do like

Upon pressing right key.

Set [saver block] x coordinate: X[saver block] + 32
Then set array x dimension: Array's current X dimension +1

Then when pressing space, save some number at current array space.

0 is like empty
1 is block 1
2 is block 2
3 is ramp 1 etc...

And then use fastloops to load from array.

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

2D > 3D

Image

   

Post Reply



 



Advertisement

Worth A Click