object following player

Status
Not open for further replies.
Is there any way to do a object following player (Like they did with srb2riders, chip, chao and bird)

If there is, someone tell me please!
 
Last edited:
Really? Seriously? It takes skills to do those kind of things, and anyway it will be even harder to actually make what is following the player if i recall correctly.
 
Really? Seriously? It takes skills to do those kind of things, and anyway it will be even harder to actually make what is following the player if i recall correctly.
Please, if you don't have the slightest idea of what the question is about, don't answer.

Nero, can you SOC? If so, you're looking for the action A_CapeChase. For stuff that rotates around the player A_RotateSpikeball.
 
Yeah thats the thingy! but I Somehow cant find. is it on the SEESTATE camp?

Edit: WAIT! I Know it must be custom, like, we need to put in MAINCFG, Correctly? but when i put ACTION = A_Capechase it says in game: Unknown word ACTION
 
Last edited:
I Still dont understand, here's what I Have:

Thing 55
MAPTHINGNUM = 313
SPAWNSTATE = 531
SPAWNHEALTH = 1000
SEESTATE = 0
SEESOUND = 0
REACTIONTIME = 8
ATTACKSOUND = 0
PAINSTATE = 0
PAINCHANCE = 0
PAINSOUND = 0
MELEESTATE = 0
MISSILESTATE = 0
DEATHSTATE = 0
DEATHSOUND = 41
XDEATHSTATE = 0
SPEED = 0
RADIUS = 1048576
HEIGHT = 2097152
MASS = 16
DAMAGE = 0
ACTIVESOUND = 0
RAISESTATE = 0
FLAGS = 513
ACTION = A_CAPECHASE

---------- Post added at 07:34 PM ---------- Previous post was at 06:22 PM ----------

Sorry for double post!

I know where I Put A_CapeChase. But Its always spamming a message....
 
You don't put that in the THING block. You have to make a new state, link to it and make it have A_CapeChase.
 
This is actually some very basic stuff.

Information listed inside a Thing block serves the purpose to define an object's attributes. The object's actual behaviour is controlled by cycles of states.

Thing header => What IS my object like?
States => What DOES my object?

I would recommend reading through the wiki's object creation tutorial for better understanding.

http://wiki.srb2.org/wiki/Object_Creation_Tutorial
 
Thing header => What IS my object like?
States => What DOES my object?
http://wiki.srb2.org/wiki/Object_Creation_Tutorial

I Know that, ill try to explain what i did:

I Got the stats, then for the emerald stats.

there, i maked action "A_CapeChase" and next frame thing to Emerald stats

but i loaded the soc in game... it spams somehow with a message like

"A_CapeChase action from object thing 355 var1: 0, var2: 0"

Its like this, IIRC.
 
Last edited:
You know you could just draw in the sprites of your character the object with you.
But I guess it would look more crappy.
 
What the hell?! -__-

Nero I don't know if you are using google translator or if you are a little unexperienced with english language... But I do not understand a single word of what you were trying to say.

And NO, apparently you do not know what I tried to explain. You assigned a soc action to a thing block instead of a state block and your soc file lacks any state changes whatsoever even though you want to make use of a soc action. That alone shows that you do not understand how the system works. Therefore you have to read through the tutorial once again!
Especially the pages
http://wiki.srb2.org/wiki/Object_Creation_Tutorial_-_Chapter_2:_File_Structure
and http://wiki.srb2.org/wiki/Object_Creation_Tutorial_-_Chapter_4:_Creating_an_Enemy

The Thing block assignes the spawnstate and the seestate of your object while the animations and actions are determined by the states the object cycles through. If you want to create an entirely new behaviour for an object in the game you have to create new states.
 
Last edited:
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top