Problems using MiniPlatform code in behavioursplayground
by Mello · in Torque Game Builder · 04/06/2008 (5:34 am) · 4 replies
Hello, first of all I want you to know that I have no programming experience/knowledge and that I've just bought my indie licence of TGB.
On a secondary level you may be interested in knowing that English is NOT my first language :P
I followed the online tutorial for creating the miniplatformer with success and so I thought I could implement such code intro the behaviour playground project that comes included in the software.
I copied the player.cs file into the right folder in the behaviour project and modified game.cs in order to exec my player.cs. But on loading the game (of course with correct names for the player animation and scripting name and class) the character is not moving like he did in the miniplat tutorial. The only thing he does is jumping (once, that should have something to do with checking 'airborne'). I also tried to put in the game scene another object and giving it one of the controls behaviours but arrows left and right (the ones used in player.cs) are not recognized anymore.
any idea on why that's happening?
Thanks in Advance!
P
On a secondary level you may be interested in knowing that English is NOT my first language :P
I followed the online tutorial for creating the miniplatformer with success and so I thought I could implement such code intro the behaviour playground project that comes included in the software.
I copied the player.cs file into the right folder in the behaviour project and modified game.cs in order to exec my player.cs. But on loading the game (of course with correct names for the player animation and scripting name and class) the character is not moving like he did in the miniplat tutorial. The only thing he does is jumping (once, that should have something to do with checking 'airborne'). I also tried to put in the game scene another object and giving it one of the controls behaviours but arrows left and right (the ones used in player.cs) are not recognized anymore.
any idea on why that's happening?
Thanks in Advance!
P
#2
What I mean is that I use TGB as a tool to implement my design work and I would love to be helped by people that know their stuff programming.
04/08/2008 (9:34 pm)
This is your very own interpretation on how game design work, I've graduated in industrial design and I am more focused on interaction design and infographic and I will not tell you to sort your things out yourself if you happen to need help in those areas. But that may as well not happen since you think 80% of a good game is code...What I mean is that I use TGB as a tool to implement my design work and I would love to be helped by people that know their stuff programming.
#3
This is the video that demonstrates it:
www.youtube.com/watch?v=D78WXDvkPgE
04/10/2008 (12:49 am)
The good thing about TGB is that you can easily work in team. Using "behaviors" and simple "slasses" someone can do the coding, while someone else can implement graphic and make a levels without having any programming skills.This is the video that demonstrates it:
www.youtube.com/watch?v=D78WXDvkPgE
#4
04/10/2008 (5:11 am)
Ok thanks. Anyway I sorted it out by adding the behaviors to my miniplatdemo, duh.
Milan Rancic
Bare in mind that 70-80% of game making in TGB is - scripting. So, it's not the point to just copy/implement files and other peoples code, and watch their games work. The point is to LEARN how to make your own games.
I suggest you to first read tutorials about TGB interface, then TGB script reference (start from theory lessons). Then you will better understand practical game tutorials.
Bare in mind, you will ALWAYS (for the rest of your game-making career) have to read tutorials and references, (more or less.) :)