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

#1 2012-02-21 02:23:19

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

2d/3d game engine

Well, I have to make one for a project I'm doing on Scratch day. This project will need to run in turbo-stepping-speed, because it needs to calculate fast.
Anyway, here is my idea....
_________________________________________________
Using 2 sprites, one a dot that is one pixel for drawing, and the other an invisible sprite for an engine, I can make real-time graphics. Here is how it works: a list is make for each "sprite", containing x-y coordinates. In the game engine sprite, you duplicate a script and change the list name to the "sprite" list that you want. Then, a variable is set for FPS (frames per second).
The engine also has two more variables: pen-x and pen-y. This is so that the pen sprite knows where to go.
~~~~~~~~~~~
The pen blocks puts the pen down and does:

when gf clicked
forever
go to x (pen-x) y (pen-y)
end
There are obviously some parts missing, but you could easily (when I'm done) turn this into a 3d engine. Trust me, it will make a whole lot of sense if you do it or I do it.

If you want to try it for yourself, go ahead. I posted it in "project ideas" for a reason!
Ask me for help here.  wink


I am currently http://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=imagehttp://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=text and I finally got over 1000 posts.

Offline

 

Board footer