Is there a way to store data from Scratch projects online, and retrieve them when a user enters a password? Because that would be REALLY cool, and I sort of want to put that in a new Scratch mod that has almost no new blocks.
Offline
somelia wrote:
Is there a way to store data from Scratch projects online, and retrieve them when a user enters a password? Because that would be REALLY cool, and I sort of want to put that in a new Scratch mod that has almost no new blocks.
Maybe you could make something that writes a project summary and stores the summary online.
Offline
scratcher7_13 wrote:
somelia wrote:
Is there a way to store data from Scratch projects online, and retrieve them when a user enters a password? Because that would be REALLY cool, and I sort of want to put that in a new Scratch mod that has almost no new blocks.
Maybe you could make something that writes a project summary and stores the summary online.
But how would I retrieve the data? I'm trying to create a virtual pet game that saves data. I could use Panther and make it save on the computer maybe.
Offline
somelia wrote:
scratcher7_13 wrote:
somelia wrote:
Is there a way to store data from Scratch projects online, and retrieve them when a user enters a password? Because that would be REALLY cool, and I sort of want to put that in a new Scratch mod that has almost no new blocks.
Maybe you could make something that writes a project summary and stores the summary online.
But how would I retrieve the data? I'm trying to create a virtual pet game that saves data. I could use Panther and make it save on the computer maybe.
I have the code to save something on a computer.
Offline
scratcher7_13 wrote:
somelia wrote:
scratcher7_13 wrote:
Maybe you could make something that writes a project summary and stores the summary online.
But how would I retrieve the data? I'm trying to create a virtual pet game that saves data. I could use Panther and make it save on the computer maybe.
I have the code to save something on a computer.
Panther already has that feature. But it would be nice to store something on the web.
Offline
somelia wrote:
scratcher7_13 wrote:
somelia wrote:
But how would I retrieve the data? I'm trying to create a virtual pet game that saves data. I could use Panther and make it save on the computer maybe.
I have the code to save something on a computer.
Panther already has that feature. But it would be nice to store something on the web.
Make a website for it and I might be able to help.
Offline
What you need is a MySQL enabled website. You can then use php POST functions to send information such as username and password to a page using a block and then have set information sent back to the block. You can see Jonnydean1 and myself developing and discussing just such a site here. The site we set up with the Panther custom blocks I shared there would be perfect for your game. Just remember that the information stored on that server will be viewable to everyone - don't share one of your passwords of anything else you don't want anyone to see
If you want a private system for your game you can probably modify our example and put it onto a site of your own!
I strongly suggest you take the time to familiarise yourself with HTLM, PHP and MySQL before you try this for yourself though!
Offline
sparks wrote:
What you need is a MySQL enabled website. You can then use php POST functions to send information such as username and password to a page using a block and then have set information sent back to the block. You can see Jonnydean1 and myself developing and discussing just such a site here. The site we set up with the Panther custom blocks I shared there would be perfect for your game. Just remember that the information stored on that server will be viewable to everyone - don't share one of your passwords of anything else you don't want anyone to see
If you want a private system for your game you can probably modify our example and put it onto a site of your own!
I strongly suggest you take the time to familiarise yourself with HTLM, PHP and MySQL before you try this for yourself though!
Thank you. I'll store the password on a user's computer, and all the other data will be stored online.
Offline
I can help!!!!
I developed something just for this.
See here.
And this mod for the blocks (Instructions on web)
Last edited by johnnydean1 (2011-04-30 15:45:38)
Offline
As sparks was talking about you could save the data online so you can access it from any computer. I made a Panther 'Mini-Forum' Project with PHP and MySQL, though it still has a few quirks. Through PHP and MySQL, you will be able to get on any computer with that project and play your character.
If you need any help, I'll be willing.
Offline
Magnie wrote:
As sparks was talking about you could save the data online so you can access it from any computer. I made a Panther 'Mini-Forum' Project with PHP and MySQL, though it still has a few quirks. Through PHP and MySQL, you will be able to get on any computer with that project and play your character.
If you need any help, I'll be willing.![]()
Thats what I have done! (SQL and PHP)
Offline
Magnie wrote:
As sparks was talking about you could save the data online so you can access it from any computer. I made a Panther 'Mini-Forum' Project with PHP and MySQL, though it still has a few quirks. Through PHP and MySQL, you will be able to get on any computer with that project and play your character.
If you need any help, I'll be willing.![]()
I need total and utter help. I've been trying to learn PHP, but every time, I just go like "Wut."
Offline
I used w3schools to learn php and MySQL - they were very clear with their tutorials. A few basic rules, semi-colons appear after nigh on every line (
like in C++. = is a set to symbol so you can create and set a variable like so:
$variable = 'hello';
a $ symbol represents a variable name and a variable can start with any letter or number but try not to use other characters as things like _ are reserved! using single speech marks is advised (') rather than doubles (") as php can be picky about speech marks inside speech marks.
Use w3schools, I found them very clear!
Offline
somelia wrote:
Magnie wrote:
As sparks was talking about you could save the data online so you can access it from any computer. I made a Panther 'Mini-Forum' Project with PHP and MySQL, though it still has a few quirks. Through PHP and MySQL, you will be able to get on any computer with that project and play your character.
If you need any help, I'll be willing.![]()
I need total and utter help. I've been trying to learn PHP, but every time, I just go like "Wut."
What do you need help with ( or need made
)?
Offline
Magnie wrote:
somelia wrote:
Magnie wrote:
As sparks was talking about you could save the data online so you can access it from any computer. I made a Panther 'Mini-Forum' Project with PHP and MySQL, though it still has a few quirks. Through PHP and MySQL, you will be able to get on any computer with that project and play your character.
If you need any help, I'll be willing.![]()
I need total and utter help. I've been trying to learn PHP, but every time, I just go like "Wut."
What do you need help with ( or need made
)?
I'm trying to do a virtual pet website/game. You can play with the pet via Scratch, but I wan the data to be able to be put online, so it could be possible for players to interact with each other. Message system, battle system, ETC.
Offline
somelia wrote:
Magnie wrote:
somelia wrote:
I need total and utter help. I've been trying to learn PHP, but every time, I just go like "Wut."What do you need help with ( or need made
)?
I'm trying to do a virtual pet website/game. You can play with the pet via Scratch, but I wan the data to be able to be put online, so it could be possible for players to interact with each other. Message system, battle system, ETC.
Oh, it is possible, IDK how. Someone made a block, I think its in the block library.
Offline