• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Sphere Starter Kit

I have a question. What is a prototype?

In javascript, a prototype is a form of inhertience. So that you can extend the object to do extra things.

For example, the example you gave of "Battle.prototype" basically says to the engine, that it wants to take the object (which in this case is Battle) and add to it's properties.

This allows me to use all of the properties of the object selected, for instance the "this.player" and the "this.enemy" properties from withing the main declaration.

Hopefully this is easy enough to understand?
 
Yea I understand, that was one of the parts that confused me.

thx for explaning.
 
That's okay, hopefully this will stop my PM box being full up of how did you make your battle system.

Obviously the one I've released is far from a pokemon battle system however you can see how it works.

First you have render() whihc displays all graphics in the battle, then broken from that is renderScene() renderPlayer() and renderEnemy(), obviously these are all quite simple, you put the code for the graphics inside the correct function.

then when you run the game you can finally see the battle system taking place etc.
 
Yay I figured out how to make the game say you're dead when your health hits zero, but I can't find a way to destroy the player after you die.
 
Yay I figured out how to make the game say you're dead when your health hits zero, but I can't find a way to destroy the player after you die.

What do you mean "destroy the player"?

Basically (if i remember correctly without the code open) a simple way of checking if the battle should continue is to use a property and a function to check with.

the property can be called anything for instance "carryOn" so do;

this.carryOn = true;

inside the main Battle function.

and then make a new prototype called "check" and get that to return true if both battlers are alive or false if they are dead, then make the main loop's while loop rely on the "carryOn" feature. but putting while(this.carryOn) instead of what's there already.
 
What's the difference between an RAR. file and a Zip file? I can't download RAR's but I can Zip's. Could you save it as a Zip file if it can be done? (If it's not too much trouble of course.)
 
Can you make Yugioh games with it easily?
caus I am reading a java book for kids but
It doesn't really tell me anything execpt
a calcualtor and a ping pong game
I am currently making my game in RM2K3 which is easier
fo me caus RMXP doesn't do wat I wanr.
 
What's the difference between an RAR. file and a Zip file? I can't download RAR's but I can Zip's. Could you save it as a Zip file if it can be done? (If it's not too much trouble of course.)

RAR's and Zip's compressed the file. if you want the stater kit, get winrar.

Can you make Yugioh games with it easily?
caus I am reading a java book for kids but
It doesn't really tell me anything execpt
a calcualtor and a ping pong game
I am currently making my game in RM2K3 which is easier
fo me caus RMXP doesn't do wat I wanr.

I'm still learning but I have an idea on how you could make a yugioh game in sphere, but if you want a better answer ask Waudby.

EDIT: By the way people I made a menu and I was able to write my own Textbox function. I feel so proud(even though I still have a lot to learn.)
 
Last edited:
I may have to look into this a bit later, provided it can make a Mother like battle format. Well, then again that's just a Dragon Quest format, so it really shouldn't be hard as ancient as it is.
 
It's not complete, but it's useful. Thanks.
 
Hey where do i download sphere ?
iv been looking for it but i can't seem to find it.
can you give me a link or something so i can get it.
Thanks !!
 
Check the Game Development rules thread(its sticked).
 
Back
Top