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

#1 2008-11-21 23:29:11

SImniel
Scratcher
Registered: 2008-09-27
Posts: 100+

Pokemon Movement test BETA

Hey scratchers!

http://scratch.mit.edu/projects/SImniel/328305

I thought up of a New method of stopping the character moving into certain objects on the map, and move away IN THE RIGHT DIRECTION from the object and stop the sprite that is moving, from cementing.

I used masks. I got the original map copied it 4 times, then deleted everything and left the side of the object I want it to bounce off. So if it touches that mask, it bounces off to the right and the other mask it bounces off to the left.

Download and you will see the sprites

and I will be happy to let people use my method...

I dunno if anyone has created this method, but if you have already, i didn't see sorry, and you are smart and logical XD

Last edited by SImniel (2008-11-21 23:31:47)

Offline

 

#2 2008-11-21 23:58:56

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

Re: Pokemon Movement test BETA

You should really only need one mask layer for your map, you just need to code it properly. Like this sort of.

//on player sprite
set oldX xposition
set oldY yposition
//put all your movement codes here
if touching (maskLayer){
go to x:oldX y:oldY
}

The best way to go for a pokemon game would be a tile based system. The maps take up a ton of file space and using tiles and arrays would greatly reduce the file size for large maps.


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

 

#3 2008-11-22 01:02:05

SImniel
Scratcher
Registered: 2008-09-27
Posts: 100+

Re: Pokemon Movement test BETA

Okay, Cool thanks

Offline

 

Board footer