Game Development Community

Problem Making Player

by Andrew H · in TGB Platformer Kit · 06/27/2012 (3:20 pm) · 1 replies

I am attempting to create my own platform game with the TGB Platformer Kit, after doing the tutorial. However, I am having trouble adding my own player to a prototype level I am working on (it's just your typical character so far).

I've created a spawn point with the SpawnPoint behavior. The fields are filled out as follows:

TargetType: pskActor2D

TargetObject: PlayerActorBaseTemplate

MinSpawnDistance: 0

MaxSpawnDistance: 100

AutoDepawn: False (unchecked)

NumberToSpawn: 1

SpawnInterval: 5

SpawnOnKill: True (checked)

The problem is that when I set it to pskActor2D, my game crashes. And when I set it to anything else, I just get a rectangle (my player art) and it just sits there. Does not move at all.

I feel I should probably mention that the datablock I am using is as follows:

datablock t2dSceneObjectDatablock( PlayerActorBaseTemplate )
{
    SuperClass        = "PlayerClass";
    Layer             = "1";
    
    _Behavior0        = "ControllerBehavior";
};

So, I am still rather confused as to what could be going on. Any help you can give is appreciated.

#1
06/28/2012 (12:30 pm)
Reposted to TGB Platformer Kit (Private): http://www.garagegames.com/community/forums/viewthread/130874