Game Development Community

Help with some beginning work [SOLVED]

by Caleb Child · in Torque Game Builder · 10/12/2011 (10:49 pm) · 3 replies

I'm trying out the trial of Torque 2D. I'm trying to see if I can get something worth-while before the trial expires. I'm trying to build a simple platformer. It's day one, and I'm having problems.

I'm trying to add a player, and get some basic movement working.

First off, I created (stole) some simple artwork for my player-character; just some temporary still images. I put them into the game-data-images folder, but I cannot get them to show up for me to use inside Torque. I've gone through every option I can find in the menus but I cannot find anything that will let me load new assets, at least, not the assets I put into that folder.

Additionally, I have no idea how to code some of the player movement, and have no examples to follow. I'm not a programmer; I only understand the basics of how programs work. None of the tutorials in the documentation cover the aspects of creating a platformer that I need to implement.
The first thing that comes to my mind is creating a universal gravity. I can't just code motion for jumping, I need the player to also fall down should he walk off an edge. I can't just program something for the player, I need enemies, items, environmental hazards, weapon effects, and all sorts of things to fall. So really I need a universal gravity that I can apply to nearly all of the actors in my scene.

Once I have gravity I need to create a jumping ability, but I imagine that this might be more obvious to me once I understand how to create gravity.

I have other questions too, but this is really where I am stuck at the moment.
(Although... I do want to ask one more thing. The documentation has certain keywords turned into hyperlinks. It is ridiculously annoying because it not only is applied to words like "up" and "one" but it also is applied inside code snippets, making most code less clear to read. How the flip do I turn that off?)

#1
10/13/2011 (6:06 am)
@Caleb - You don't just place images in the folder. You need to create image maps. This topic is covered in the documentation. Use this:

tdn.garagegames.com/wiki/images/1/18/2-3_addImageMap.png
As for basic platformer movement, check out this tutorial: Mini-Platformer. I highly recommend you try the simpler tutorials in the official documentation first, though.

As for the hyperlinks, I'm working on removing those.


#2
10/13/2011 (2:06 pm)
Okay, I got the images appearing now.
When I was looking up that in the documentation it said I could drag images right out of the HTML file and into the editor. I had tried doing that with the files in the folder, but it didn't happen.

I'm starting through that tutorial, so far it looks very helpful. Thank you for the link!

I did actually try those simpler tutorials... a few years ago, when I first tried out TGB. (I don't recall exactly why I abandoned that project at the time.) I read through the tutorials again and have been using them as reference, but I don't see any profit to spending my time actually building them.
Well, not now that I've gotten past that import issue.

Again, thanks for the help!
#3
10/14/2011 (11:52 am)
Happy to help out.