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

#1 2008-04-02 03:33:30

NeoCranium
Scratcher
Registered: 2008-03-30
Posts: 15

First Person Scratcher

How can you make a FPS while still being able to move?

Offline

 

#2 2008-04-02 11:53:22

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: First Person Scratcher

With great difficulty...

Sprites wouldn't be a problem but scenery would be very difficult to arrange - it would have to be build out of sprites.

The easiest solution is to limt the directions that can be faced (to the 4 cardinals - NWEW) and then use a dynamic script that reads a map and generates the reqired view.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#3 2008-04-02 21:53:47

NeoCranium
Scratcher
Registered: 2008-03-30
Posts: 15

Re: First Person Scratcher

Mayhem wrote:

With great difficulty...

Sprites wouldn't be a problem but scenery would be very difficult to arrange - it would have to be build out of sprites.

The easiest solution is to limt the directions that can be faced (to the 4 cardinals - NWEW) and then use a dynamic script that reads a map and generates the reqired view.

Thanx. The (NWE and it's South. S.) Really helped me out! But you didn't explain the Simple Movement. Please tell me how!

Offline

 

#4 2008-04-02 22:09:31

thecooltodd
Scratcher
Registered: 2008-03-08
Posts: 75

Re: First Person Scratcher

Simply put, moving forward you change the size of the sprite (which represents terrain or enemies).  If you want I could figure out how big it should be depending on how far or close you are.  And when you move back you decrease the size.

Moving left or right would mean you stay stationary and you just move the terrain.  If you move left, you move all terrain and enemies right and you don't move your own position.  (Motion is relative  big_smile )

Offline

 

#5 2008-04-03 02:00:30

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: First Person Scratcher

NeoCranium wrote:

Mayhem wrote:

With great difficulty...

Sprites wouldn't be a problem but scenery would be very difficult to arrange - it would have to be build out of sprites.

The easiest solution is to limt the directions that can be faced (to the 4 cardinals - NWEW) and then use a dynamic script that reads a map and generates the reqired view.

Thanx. The (NWE and it's South. S.) Really helped me out! But you didn't explain the Simple Movement. Please tell me how!

You could take the code from my 3d maze game:

http://scratch.mit.edu/projects/Mayhem/23570

But replace the existing RPG based combat system with something more active.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

Board footer