• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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 Help

Yes but they must be modified a bit ( i use the colour picker in sphere) as the bits that are normally transaparent on rm2k/3 aren't on sphere.
 
Help,

In sphere how do u make a bag system like pokemon? (so that when u go into the bag u press left or right to go into a different section), Thanks.
 
Dont you think you are going abit overboard with the questions.
Try and do things yourself or you wont learn I had to to my bag coding with out help
 
What i meant is how do i make it so that if i press left/right arrow whilst im in my ingame menu, in the bag section changes it to a different menu????????????????
Please help.
 
There is no point in copying and pasting code that some one else does you cant rely on other people to make your game for you.
Look up tutorials,while there aren't many tutorials that actually deal with javascript being used in sphere the ones that deal with making web pages can also be helpfull.
At least try it and if you cant figure it out say what errors you get rather just asking how to do the whole thing straight out.
 
boota sack hes just askin a question he has obviosly already tried and cant figure it out

when some1 askes a question you shouldnt bag em out
 
I'm with booda, You cant possibly be serious about asking for the whole lot of coding for the bag! You are meant to learn the coding and make up your own scripting for the bag.
 
I dont want to get into an argument. We are certainly more mature than that.
Have you seen the "get well daegon" thread? Daegon's brother had no right to post there.
 
thats pretty bad
that kid must be really jelios of his bro or somethin
my jelios bro would say somethin like that but he dont post on her

actually he probibly wouldnt he aint that jelios :P
 
I have tried, have read through tutorials but it does not work, what happens is that instead of pressing left or right to change the menu u have to press escape , do u know how i could fix this, my main script is:
EvaluateScript("Menu.js");

function game() {
MainMenu();
}
function menu() {
var MyMenu = new Menu();
MyMenu.addItem("Pokemon", Pokemon);
MyMenu.addItem("Bag", Bag);
MyMenu.addItem("Exit", Exit);
MyMenu.execute(1, 1, 100, 200);
}

function Pokemon() {
Abort("You choose Pokemon\n");
}

function Bag() {
var MyMenu =new menu();
MyMenu.execute(1, 1, 100, 200);
if (IsKeyPressed(KEY_LEFT) == false)
var MyMenu =new menu();
BindKey(KEY_ESCAPE, "menu()","");
MyMenu.addItem("Bag", Bag);
MyMenu.execute(1, 1, 100, 200);
if (IsKeyPressed(KEY_RIGHT) == false)
var MyMenu =new menu();
MyMenu.addItem("Exit", Exit);
MyMenu.execute(1, 1, 100, 200);
}

function WarpObject(x, y, layer, map) {
if (this instanceof WarpObject == false) {
return new WarpObject(x, y, layer, map);
}

this.x = x;
this.y = y;
this.layer = layer;
this.map = map;
}

WarpObject.prototype.warp_to = function() {
if (IsInputAttached()) {
var person = GetInputPerson();
if (typeof(this.map) == typeof("string")) ChangeMap(this.map);
if (typeof(this.layer) == typeof(0) && this.layer >= 0) SetPersonLayer(person, this.layer);
if (typeof(this.x) == typeof(0)) SetPersonX(person, this.x);
if (typeof(this.y) == typeof(0)) SetPersonY(person, this.y);
}
}
var town_door_1 = WarpObject(120, 64, 0, "map1.rmp");
var house_1 = WarpObject(60, 60, 0, "map1.rmp");
 
Try this :

function game() {
MainMenu();
}
function menu() {
var MyMenu = new Menu();
MyMenu.addItem("Pokemon", Pokemon);
MyMenu.addItem("Bag", ballpocket);
MyMenu.addItem("Exit", Exit);
MyMenu.execute(1, 1, 100, 200);
}

function Pokemon() {
Abort("You choose Pokemon\n");
}

function ballpocket() {
var MyMenu = new Menu();
// add your items in here
MyMenu.execute(1, 1, 100, 200);

}

function berrypocket() {
var MyMenu = new Menu();
// add your items in here
MyMenu.execute(1, 1, 100, 200);

}

switch (GetKey()) {
case KEY_LEFT: {
ballpocket();
}

casr KEY_RIGHT: {
berrypocket();
}

case KEY_ESCAPE: {
menu()
return;
}


function WarpObject(x, y, layer, map) {
if (this instanceof WarpObject == false) {
return new WarpObject(x, y, layer, map);
}
 
Booda Sack that does not seem to work an error comes up saying:
Script Error in Scripts/game.js, line 40
SyntaxError: invalid return,
return;

i do not know who to fix this error, do you. Thanks for the help.
 
Back
Top