Thank you really much! I havent seen it. Do you have a more efficient solution for the inventory?
:)
Develop games in your browser. Powerful, performant & highly capable.
Please download the capx. Inside it is shortly described.
The problem is that if you collect the same object multiple times, it jumps to the next row in the inventory. I dont own the capx, its just modified. :D
best regards!
Capx Link: http://www.mediafire.com/file/467qfv4krqecr9t/game.capx.backup1/file
Ive made a blocky game. I can build structures out of blocks. Now I want to save a structure (made of multiple instances of one block-object(different animationframes)). How do I save such a structure as json?(available on other computers) Maybe with an Array or dictionary? Please, can you give me instructions or even better a small example capx. Best regards!:)
I only need to store the position and the texture. Possibly a health variable. Do you know a similar topic or can you create a Small example? And is it possible to spawn enemies with this method?
Best regards!
But There is another thing, what I´m unable to do. How do i save a construction as JSON? It should be possible to load ships on other computers from it. :))
I´d like to spawn for example this structure.
I have Made a blocky space game. Now I need enemies. How do I spawn enemies which I made of blocks/instances in the Layout Editor ingame? :)
I found a solution under use of your work. Thank you for your help!
Best regards! :)
http://www.mediafire.com/file/3mpyah6jz11g769/try.c3p/file
Thanks for taking your time! Your excellent work helps me really much.
I try to pin all objects to the green "Pintosprite" and destroy the rest. It has the car behavior. My capx isnt working, but do you know, what i mean? ^^
Thank you very very much! Your grid is better then my method. ^^ But there is one problem left. When blocks are getting destroyed ingame, and Im not in the Viewport, the cam isn`t able to center farther. Is there a way to center without the viewport?
Thanks for help!
Thank you so much! But this is done with the screen size, i think. I have to find the middle of the green frame (which is movable and bound to layout, because Layout is bigger than the screen). Im to stupid to do that ^^. Please help me.
The ship is made of blocks (mouse clicks) which are pinned on the green frame (position and angle). The green frame has a car behavior for moving. Because blocks can be destroyed and because of the torque i have to get the middle of the ship. Another solution is to pick the middle block of the ship. Then i could set the frame to it.
Maybe pick the highest and lowest X and Y /2 from the block instances. But I dont know how to do that.
No, the immage point from the yellow square is in the middle of itsself. I ment how to place the yellow square in the middle of the spacecraft for the Scroll to behavior. Because the spacecraft Is individual buildable of blocks(manny instances of the same object). (Spacecraft should be in the middle of the Screen in game) Thanks for trying to Help! :)
How do I pick the center of many random placed instances of the same object(Spacecraft in the Picture)? The yellow square is the Center that should being set in the middle of the handmade spacecraft.