Game Development Community

The Camera on Contra - Nes? How to Emulate it.

by Fernando Hurtado Jr · in Torque Game Builder · 07/18/2009 (7:54 am) · 20 replies


I was playing Contra last night (RnD) and am trying to put my finger on the Camera Movement.

3/4 of the way to the right of the screen the player pushes the camera foward and it can never go backward.

The Camera is not mounted to either player but it feels that it has to be pushed or collided with.

Please I'd like to cover this subject as I feel it will help a lot of people learn that there's more than one camera in the world besides player mounted.

A Behavior or a camera.cs which way?

#1
07/18/2009 (10:54 am)
theres a lotta ways to do this. you could use triggers, world boundaries and so on... EVEN VECTORS CAN BE USED TO CALCULATE THE POSITION OF THE PLAYER AGAINST THE CENTER OF THE SCREEN (so that, in the end at certain point, you move the camera and all that).

trust me man, thinkin just a lil bit its not that hard. and im kinda tired of seeing you posting the same thing, over and over again. the forums are sharing experiences, and asking things that got you stuck with something or w/e, not for us to make your homework.

oh, and by the way, the camera its only one, thing is, you just move it wherever you want, whenever you want. it doesnt really have to be mounted on anything for you to control its movement or w/e... and you can put that code wherever you want, not necesarily a behaviour... Again, try to think a solution for such issue, try to code it, and if it somehow doesnt work, ask for help... but dont pretend that we do it for you just like that... we do have projects goin on too, you know.
#2
07/18/2009 (6:02 pm)
Funny thing is You didn't really answer the question.
You just boardly went over it, name dropping and hinting at things.
You don't have time to do my homework, but between Your Projects You Prance Around the Board sprinking BS Dust.

You Didn't Really Help Bud, BUT You did suceed at wasting Your time.
I'm not wasting time I'm slowly inching towards my goal.
#3
07/18/2009 (9:38 pm)
Quote:You don't have time to do my homework, but between Your Projects You Prance Around the Board sprinking BS Dust.

You Didn't Really Help Bud, BUT You did suceed at wasting Your time.

You know how to make friends...

shaderman.com/misc/fun/daumenhoch.gif
#4
07/19/2009 (6:49 am)
Friends I'm not here to make friends I'm here to make a game, with or without You.
#6
07/21/2009 (10:19 pm)
what ronny said.

oh... and BTW, i spend (waste?) my time however i want to... even if it is spouting BS in your shitty "threads". keep it up m8... you're doing great.
#7
07/21/2009 (10:31 pm)
The offline helpfiles are really the place to look. Trust me I can understand your pain. Check out the offline help, it's golden.
#8
07/22/2009 (1:08 am)
the offline helpfiles comes with the default install of TGB... maybe the ones offered right now, are updated, but like i said, they've always come with the TGB install...
#9
07/22/2009 (11:07 am)
you may not be trying to make friends but without at least being nice to people then no one will help you out. There will come times when you will need help and all you are doing is making it so no one here will help you.

so this is the last tid-bit of info i'm going to help you with.

Take a look at this tdn.garagegames.com/wiki/T2DScript/PlatformerWorld

you will have to modify this so that you can only go to the right but it should at least point you in the right direction.

If you can't pull out the information you NEED and throw away what you dont then you should prolly take a few beginner classes on programming at your local community college assuming you're not 12 years old.
#10
07/22/2009 (12:40 pm)
and here i was thinkin he was like 8 or something...
#11
07/22/2009 (12:55 pm)
he might be
#12
08/05/2009 (12:31 pm)
Notice how this question was still never answered by the Smart Boys who claim to know it all, how petty that You're just KINDA holding me back.
#13
08/05/2009 (1:53 pm)
we're not here to do things for you, we will help guide you along though. Also, talking to people here in a negative way is sure to keep people from help you with anything.

Both Ehrlichmann and I posted things that should get you close to what you are looking for. It's up to you to take it the rest of the way.
#14
08/05/2009 (2:15 pm)
Edited by moderator
If you cannot post something civil, do not post
#15
08/05/2009 (2:44 pm)
wow...such disrespect
#16
08/05/2009 (2:47 pm)
*sigh* ... for real dude, i wish you the best with your game.

i have no problem posting some snippets from time to time, but its not like im gonna make your game just because you ask (not nicely at all)... if you dont know how to think, its your problem. we gave you ideas of how to achieve your goal, but it seemed like you wanted us to actually post the whole code for you here, and thats not the way it is.

no, we didnt want you to kiss our asses, we just wanted you to take the ideas further, and develope things for yourself... but i guess that was way too much for us to ask.

hope you can actually make your game and all that, but trust me, i'll refrain from actually helping you on the matter (but im not saying i'll stop posting on your threads... you're no one to stop me from doing so ;))...
#17
08/05/2009 (5:04 pm)
Hey I've never Misrepresented Myself,

I bought TGB because it claimed that I'd be Making Games IN A SNAP.

I've NEVER EVEN TAKEN ANYTHING IN THE REALM OF C++.

I've already made leaps and bounds in my game development.

BUT I NEVER WANTED TO BE A GAME "PROGRAMMER."

So until One of You can give me a FLAT RATE PER FUNCTION or something to that degree, FOR ME TO PAY YOU PROFESSIONALLY TO DO YOUR PROFESSIONAL SKILLS, I'm between a Rock and a Hard Place.
















DID PHIL SPECTOR PLAY ON THE RAMONES ALBUMS???

NO,

So Why AM I TO PROGRAM a Game that I have no Business Programming?

"Cause I don't see anyone else doing it."


I'll Never be a Programmer and I Never want to be a Programmer I just want a Game!
#18
08/05/2009 (7:30 pm)
Torque 2D will assist developers in making games more easily than a ground-up approach in most cases; but there is no substitution for hard work, learning the ropes, and actually doing all the work needed to make a game. Even using sprite rips and tilesets from the net only save a little art time and are quick and easy to get going. Writing the logic behind your game, testing it on your target platforms, and maintaining your codebase, supporting your product, patching it for the next string of OS versions, etc... None of that is easy.
#19
08/05/2009 (8:52 pm)
Edited by moderator
Gotta end the name calling and harsh language on both sides. Time to move along

awwwª.... c'mon man!... now i really think i wasted my time comming up with such masterpieces!
#20
08/06/2009 (6:55 am)
There used to be a job section on the site where you could hire people to do things, and there used to be a project section where you could propose your project and find new members to join. I can't find either of them now though...I don't know if GG just removed it or I can't find them. I prefer the old website better.

Anyway, to give it to you straight, people here will help you but you need to be respectful and ask specific questions. Nobody will want to assist you if you're rude. I don't know what you expected from TGB...there is a trial, so you should have known that it's as simple as drag-and-drop game design (pretty close to it with behaviors though!).

My suggestion to you, would be to chill out first of all...take a deep breath. Then check out TDN, go to support->documentation->TDN and check out the tutorials. I know you said you don't want to program, but torque script is much easier to do. There are a number of pre-made behaviors you can attach to your objects too. Making a game is a process, you just need to be patient.