This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#151 2011-04-21 21:00:19

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Pokemon Magnus: The collab thread

Would you be able to adjust the size for the tiles? 16 by 16 is good for nintendo's handhelds but not the scratch screen. Tiles sized at 48 by 36 would be best. When you have a .map file ready (or whatever file extension tiled uses) please share it here. For the testing area, which tests most of the game's functions it should look like Virdian city, pokemon mart/center, gym grass somewhere, sea.

Last edited by archmage (2011-04-21 21:00:35)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#152 2011-04-21 21:57:54

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: Pokemon Magnus: The collab thread

I use .png (I think, but it's not .map).

You can export it.

Since my tiles are 16x16, 48x36 will make this a rectangle shape.

I can make it to 36x36 if you want. You can leave the black sides.

Instead of adjusting all my tilesets, I'll just increase the size of the map by 2.25.

It'll be a little [lot, actually] blurry...

Offline

 

#153 2011-04-21 22:45:53

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Pokemon Magnus: The collab thread

Yeah if 48x36 is too blurry then 32x32 is fine. Just leave them as 16x16, I'll just set the size to 200%.

So each costume is going to be 15 tiles wide and 11 tall. Also, it is important to note that there must be layers for collision and pokemon areas. So, when you submit a map, there must be a map of black tiles showing walls and places you can't move in to, and there must be another map of black tiles showing where you can find pokemon. In tile based maps, each tile has different properties so all these issues can be addressed at once in a tile based system, not the case with this, there needs to be layers.

Last edited by archmage (2011-04-21 22:58:11)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#154 2011-04-21 22:55:14

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: Pokemon Magnus: The collab thread

When I was doing RMXP, there were:

Ground
Ledge down
Ledge right
Ledge left
grass
Building/tree/anything you can't walk though
doors
water
waterfalls

I won't use the ledges though.

So you're saying you want me to make a new map with just a tile not used, to show what you can't walk through, right?

What tile would be best for that?

Offline

 

#155 2011-04-21 22:58:44

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Pokemon Magnus: The collab thread

What I need is just a black square, it will be invisible.

You have to put these black tiles everywhere the player can't move into.

Last edited by archmage (2011-04-21 22:59:29)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#156 2011-04-21 23:22:56

mkolpnji
Scratcher
Registered: 2007-07-20
Posts: 100+

Re: Pokemon Magnus: The collab thread

Added in multiple-hit attacks. Spikes is currently the "test" multiple-hit attack. Added in critical hits. There is a 6.25% chance of landing a critical hit, and it will do twice the damage of a normal attack like in pokemon.

http://scratch.mit.edu/projects/mkolpnji_test/1739470


http://i723.photobucket.com/albums/ww232/mkolpnji/signaturebanner.gif

Offline

 

#157 2011-04-21 23:32:02

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Pokemon Magnus: The collab thread

Good stuff Mkolpnji, keep em coming!

One thing that has to be added sometime soon is the elemental modifiers and adjusting the damage formulas to account for them.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#158 2011-04-21 23:49:46

mkolpnji
Scratcher
Registered: 2007-07-20
Posts: 100+

Re: Pokemon Magnus: The collab thread

archmage wrote:

Good stuff Mkolpnji, keep em coming!

One thing that has to be added sometime soon is the elemental modifiers and adjusting the damage formulas to account for them.

The only thing is that implementing the elemental modifiers is going to be extremely hard to do. I will have to write this long script to check for each element and their weaknesses and everything.


http://i723.photobucket.com/albums/ww232/mkolpnji/signaturebanner.gif

Offline

 

#159 2011-04-22 00:07:00

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Pokemon Magnus: The collab thread

Yeah, each element should have 3 lists, 1 strong against, 2 weak against, 3 not affected by. The code should be something like this,

E_element is the element of the enemy, there are no dual element monsters, this assumes the player is using a fire pokemon.

if (fire_strong contains E_element){
set ele_mod to 1.5
}
else{
if (fire_weak contains E_element){
set ele_mod to .5
}
else{
if (fire_nonafft contains E_element){
set ele_mod to 0
}
else{
set ele_mod to 1
}
}
}

And I think you may have to do this for each element, this wouldn't be the case with multidimensional arrays. There may be a better way of doing this, but I can't think of anything better at this time.

Before all that, you have to make a list with the elements though.

EDIT: Just thought of a faster way of doing this. First put all the elements of pokemon in a list, for example say there are 8 different elements. You have a list called elemental_mod which lists the modifiers for each monster. Say fire is the first element, the first eight values in the list contain the modifier values, say water is the second element, the next 8 values contain the modifers for the water element. The script would look like this:


set ele_mod to (8*(player_ele-1)+ene_ele)

I will code an example of this soon.

Last edited by archmage (2011-04-22 00:17:59)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#160 2011-04-22 00:25:19

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: Pokemon Magnus: The collab thread

I'm lazy.

Can someone make me a 16x16 black square?

Offline

 

#161 2011-04-22 00:33:09

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Pokemon Magnus: The collab thread

Jeeze, just open paint, bucket fill, then change the dimensions to 16 by 16.

Last edited by archmage (2011-04-22 00:47:06)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#162 2011-04-22 00:54:51

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: Pokemon Magnus: The collab thread

Fine.

Offline

 

#163 2011-04-22 01:48:19

mkolpnji
Scratcher
Registered: 2007-07-20
Posts: 100+

Re: Pokemon Magnus: The collab thread

I already finished coding most of the element stuff with your method already archmage, so there's no need to create an example.  tongue


http://i723.photobucket.com/albums/ww232/mkolpnji/signaturebanner.gif

Offline

 

#164 2011-04-22 02:09:06

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Pokemon Magnus: The collab thread

Errr which method did you use? The first thing I mentioned takes a ton more scripting space than the last one.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#165 2011-04-22 02:27:32

mkolpnji
Scratcher
Registered: 2007-07-20
Posts: 100+

Re: Pokemon Magnus: The collab thread

archmage wrote:

Errr which method did you use? The first thing I mentioned takes a ton more scripting space than the last one.

The second one.
I'm uploading it right now.


http://i723.photobucket.com/albums/ww232/mkolpnji/signaturebanner.gif

Offline

 

#166 2011-04-22 02:32:06

mkolpnji
Scratcher
Registered: 2007-07-20
Posts: 100+

Re: Pokemon Magnus: The collab thread


http://i723.photobucket.com/albums/ww232/mkolpnji/signaturebanner.gif

Offline

 

#167 2011-04-22 02:55:50

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Pokemon Magnus: The collab thread

I am looking for the element script and I can't find it  tongue  Can you say where you put it?


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#168 2011-04-22 02:59:14

mkolpnji
Scratcher
Registered: 2007-07-20
Posts: 100+

Re: Pokemon Magnus: The collab thread

archmage wrote:

I am looking for the element script and I can't find it  tongue  Can you say where you put it?

It's in its own sprite, conviently named Element_chk. It's right after the admin_Nextstate sprite.

Also, you might want to redownload it, I reuploaded it a few times to fix some bugs.

Last edited by mkolpnji (2011-04-22 03:04:26)


http://i723.photobucket.com/albums/ww232/mkolpnji/signaturebanner.gif

Offline

 

#169 2011-04-22 03:14:56

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Pokemon Magnus: The collab thread

Wait a sec, this takes in to account monster with more than 1 elements, I was just thinking of doing 1 but 2 is good too. Sorry, I've looked over your code and its hard for me to read it, so could you comment it a bit.

Like I understand the set ele_mod to (8*(player_ele-1)+ene_ele) part that I told you but I don't get the rest, like the stuff you do with the i variable and the other element variable setting.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#170 2011-04-22 09:04:49

mkolpnji
Scratcher
Registered: 2007-07-20
Posts: 100+

Re: Pokemon Magnus: The collab thread

archmage wrote:

Wait a sec, this takes in to account monster with more than 1 elements, I was just thinking of doing 1 but 2 is good too. Sorry, I've looked over your code and its hard for me to read it, so could you comment it a bit.

Like I understand the set ele_mod to (8*(player_ele-1)+ene_ele) part that I told you but I don't get the rest, like the stuff you do with the i variable and the other element variable setting.

Basically, the script sets it to the elem_mod for the first monster type. However, if the monster has a second type, then the ele_mod would have to change so you can't just use the set ele_mod to (8*... script anymore because if the first type was super-effective, and the second type was not very effective, than ele_mod would = 0.5, not 1.  So I set i to the (8*... script, and I made it so that it tests for all the situations and set the ele_mod to the correct value accordingly.


http://i723.photobucket.com/albums/ww232/mkolpnji/signaturebanner.gif

Offline

 

#171 2011-04-22 10:09:19

cooljj100
Scratcher
Registered: 2009-10-10
Posts: 55

Re: Pokemon Magnus: The collab thread

I've been following this for a while and saw that you were trying to get some new members. If you give me a programming assignment to prove my skills I may be able to help you. I may be able to contribute a few ideas to this colab, too.

Thanks -jj


Summertime is almost here!
My Stuff

Offline

 

#172 2011-04-22 13:42:19

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Pokemon Magnus: The collab thread

mkolpnji wrote:

archmage wrote:

Wait a sec, this takes in to account monster with more than 1 elements, I was just thinking of doing 1 but 2 is good too. Sorry, I've looked over your code and its hard for me to read it, so could you comment it a bit.

Like I understand the set ele_mod to (8*(player_ele-1)+ene_ele) part that I told you but I don't get the rest, like the stuff you do with the i variable and the other element variable setting.

Basically, the script sets it to the elem_mod for the first monster type. However, if the monster has a second type, then the ele_mod would have to change so you can't just use the set ele_mod to (8*... script anymore because if the first type was super-effective, and the second type was not very effective, than ele_mod would = 0.5, not 1.  So I set i to the (8*... script, and I made it so that it tests for all the situations and set the ele_mod to the correct value accordingly.

I was wondering why you didn't just do

first elemental mod * second elemental mod

If there is no second element it is set to 1 by default.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#173 2011-04-22 13:51:56

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Pokemon Magnus: The collab thread

cooljj100 wrote:

I've been following this for a while and saw that you were trying to get some new members. If you give me a programming assignment to prove my skills I may be able to help you. I may be able to contribute a few ideas to this colab, too.

Thanks -jj

Umm sure, can you try to code a realistic RPG battle simulation? Just try to clone the battle engine of your favorite RPG game.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#174 2011-04-22 14:36:38

cooljj100
Scratcher
Registered: 2009-10-10
Posts: 55

Re: Pokemon Magnus: The collab thread

archmage wrote:

cooljj100 wrote:

I've been following this for a while and saw that you were trying to get some new members. If you give me a programming assignment to prove my skills I may be able to help you. I may be able to contribute a few ideas to this colab, too.

Thanks -jj

Umm sure, can you try to code a realistic RPG battle simulation? Just try to clone the battle engine of your favorite RPG game.

So would a elemental battle engine be sufficent?


Summertime is almost here!
My Stuff

Offline

 

#175 2011-04-22 15:17:19

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Pokemon Magnus: The collab thread

Ok, just pick any rpg, pokemon, final fantasy, golden sun, ect, and make an accurate battle clone using the formulas from the game you pick.

This is an example of what I mean
http://scratch.mit.edu/projects/mkolpnji/1492994


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

Board footer