Game Development Community

a way to make movement relative to camera view?

by Drew Kario · in Torque Game Engine Advanced · 10/19/2009 (4:23 am) · 2 replies

Hi people. Im looking for a way to make my movement on screen relative to the camera. Ex. I have a top down game im working on, I want W to always go to the upper portion of the screen, D to go to the right, etc..

I found a resource and implemented this, but it has broken when i implemented an array resource, and now i cannot even figure out how i did it in the first place, as the page seems to have disappeared entirely.

I have the advanced camera resource, and an aim where the cursor points code running smoothly. If someone can point me in a direction, I'd be very grateful.


Thanks much.

#1
10/20/2009 (8:15 am)
Was this the resource you used?

Either way, the problem's not the resource, if it only broke when you implemented the array resource. I would start over, re-implementing your separate movement, then back up your files and implement the array resource, and if it's broken, well, you've got backups! Even better look into setting up version control with SVN, so you can roll back changes that break your game.
#2
10/23/2009 (1:21 am)
Thats not the resource i implemented. i cant for the life of me figure out How i got it working in the first place. I am going to use that resource you pointed out though.

SVN seems a bit complicated to me, im not really sure how i would use it.

Thanks for the link and the reply.