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

#1 2012-11-15 15:28:12

Sqervay
New Scratcher
Registered: 2012-10-28
Posts: 52

Need help: 2D Graphic (not physic) engine!

Hey guys,
I want to make a game with a big 2d map, where you can go and fly around
(the game will be like 'Doodle Army 2: Mini Militia' for IPhone).
My problem is, that i don't know how to make a 2d engine.
So pls help me, give me tips or a script.

thx for help.

Offline

 

#2 2012-11-17 12:40:00

30-1
Scratcher
Registered: 2012-08-08
Posts: 100+

Re: Need help: 2D Graphic (not physic) engine!

Maybe this will help.


http://i.imgur.com/ocOya7x.gif
I. Text I Based I Games I

Offline

 

#3 2012-11-17 13:26:28

Sqervay
New Scratcher
Registered: 2012-10-28
Posts: 52

Re: Need help: 2D Graphic (not physic) engine!

30-1 wrote:

Maybe this will help.

I already read this. But I don't mean just a scrolling background. I mean a real engine.
A Scrolling background is too big...

Offline

 

#4 2012-11-17 13:30:05

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Need help: 2D Graphic (not physic) engine!

I'm confused by what you mean when you say "2D engine".  Could you elaborate?


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#5 2012-11-17 14:36:48

Sqervay
New Scratcher
Registered: 2012-10-28
Posts: 52

Re: Need help: 2D Graphic (not physic) engine!

MoreGamesNow wrote:

I'm confused by what you mean when you say "2D engine".  Could you elaborate?

I mean that the 2d map atomatic generates, like in a 3d engine, but 2d.
A way to show for example the right side of the background on the large background,
when i press d. I don't want to make it with one very large background that moves when you press the buttons.

Offline

 

#6 2012-11-17 15:34:40

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Need help: 2D Graphic (not physic) engine!

Are you asking about scrolling??


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#7 2012-11-17 17:01:42

Sqervay
New Scratcher
Registered: 2012-10-28
Posts: 52

Re: Need help: 2D Graphic (not physic) engine!

MoreGamesNow wrote:

Are you asking about scrolling??

This is good, but is there a way with calculating and algorithms?

Offline

 

#8 2012-11-17 18:07:22

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Need help: 2D Graphic (not physic) engine!

What would you be calculating?  Are you trying to do something more complex than scrolling?


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#9 2012-11-18 06:56:27

Sqervay
New Scratcher
Registered: 2012-10-28
Posts: 52

Re: Need help: 2D Graphic (not physic) engine!

MoreGamesNow wrote:

What would you be calculating?  Are you trying to do something more complex than scrolling?

Scrolling is a good way, but I'm interrested in making it like in 3d where you make it with sin & cos too......

Offline

 

#10 2012-11-18 08:38:00

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Need help: 2D Graphic (not physic) engine!

Are you trying to intentionally use sin/cos? That's to how programming works: you use a feature to solve a problem, not create a problem to use a feature.  wink


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#11 2012-11-18 09:03:14

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Need help: 2D Graphic (not physic) engine!

Sqervay wrote:

MoreGamesNow wrote:

What would you be calculating?  Are you trying to do something more complex than scrolling?

Scrolling is a good way, but I'm interrested in making it like in 3d where you make it with sin & cos too......

You don't have to use cosine and sine.  I would even hazard to guess that you shouldn't use it.  Scratch comes equipped to display 2D graphics via an x-y coordinate system, why don't you just use that?


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#12 2012-11-18 15:17:49

Sqervay
New Scratcher
Registered: 2012-10-28
Posts: 52

Re: Need help: 2D Graphic (not physic) engine!

ok , i said it bad. I wanted to say that i want to make it noot with scrolling, but with formulas, because you have, when you use scrolling, the problem that you have to make a border. I hope you understand now what I meant...

Offline

 

#13 2012-11-21 05:45:19

30-1
Scratcher
Registered: 2012-08-08
Posts: 100+

Re: Need help: 2D Graphic (not physic) engine!

But you don't have to make a border...
It still works fine with none.


http://i.imgur.com/ocOya7x.gif
I. Text I Based I Games I

Offline

 

#14 2012-11-22 09:20:16

Sqervay
New Scratcher
Registered: 2012-10-28
Posts: 52

Re: Need help: 2D Graphic (not physic) engine!

30-1 wrote:

But you don't have to make a border...
It still works fine with none.

Really ? How???

Offline

 

#15 2012-11-22 10:20:17

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: Need help: 2D Graphic (not physic) engine!

Offline

 

#16 2012-11-22 11:34:37

Sqervay
New Scratcher
Registered: 2012-10-28
Posts: 52

Re: Need help: 2D Graphic (not physic) engine!

thx

Offline

 

#17 2012-11-22 11:51:12

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: Need help: 2D Graphic (not physic) engine!

You're welcome!  smile

Offline

 

Board footer