Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - tetsu0sh0

Pages: 1 2 3 4
16
Resolved Questions / Re: Can i reference other actor's attributes?
« on: August 24, 2012, 07:45:11 am »
OH alright. Hmm gotta try that.
Thanks man :)

17
Resolved Questions / Re: Can i reference other actor's attributes?
« on: August 24, 2012, 07:41:58 am »
ok im gonna try that thanks.
How would i go about calling that though?
I wouldn't want my worker ALWAYS searching for a tree.
Would you recommend having a "search for tree" boolean?
And than when a tree is found, reset the "search for tree"?

18
Resolved Questions / Re: Can i reference other actor's attributes?
« on: August 24, 2012, 07:14:03 am »
Say there's 10 trees in a forest.
My worker walks up to one of those trees.
How do i specifically reference that tree and that worker?

19
Resolved Questions / RTS Mechanics
« on: August 24, 2012, 06:52:59 am »
Thread Hijack

Well the thing is, i'm making an RTS...
So right now i have a behavior that will select and deselect a unit, issue a move command etc etc..
But i'm not sure if that should be a scene command or an actor command because i want to interact with every single actor type.

And then what about gathering resources?
How would i go about knowing if my actor is near the resource or not..
I got the reference and i can "pull" resources from the resource point and place them into my actors inventory..

I'm setting a bit when my actor collides with a resource, but how do i know when he walks away?

Ugh.. so many questions

20
Resolved Questions / Re: Can i reference other actor's attributes?
« on: August 24, 2012, 06:20:28 am »
Yeah i found them. Thank you.
I'm having a difficult time organizing my game.
I'm unsure of whether i should make my code per actor, or make behaviors and attach them to my actors..

21
Resolved Questions / [SOLVED] Can i reference other actor's attributes?
« on: August 24, 2012, 05:53:58 am »
Is it possible to get an attribute from an actor?
Say i have a scene behavior that clicks on an actor.
That actor has an attribute of "health"
Can i somehow reference that attribute without making it global?

22
Ask a Question / Re: Actor "Transformation"?
« on: August 23, 2012, 04:49:29 pm »
Ack!!
My sincere apologies.
Let me rephrase:

What she said.

23
Make your regions thinner, they don't have to be as wide as they are.
You want to offset your teleport location enough so your character wont hit the teleport region when his location changes.

24
Ask a Question / Re: Actor "Transformation"?
« on: August 23, 2012, 07:53:15 am »
^^^^^^^^^^^^^
What he said.
You can make some fancy animation, then kill the old actor.

25
Try That.
It uses the sample platformer game.
I removed "Die in a Pit" because the actor teleports off screen

The behaviors are written directly into the scene.

26
Are you copying my logic?
I have tested the teleport, and it worked for me.

27
Ask a Question / Re: Collecting Coins
« on: August 23, 2012, 06:04:49 am »
You need a Number type game attribute called coins. That'll hold the amount of coins you have collected.

And you need a coin actor.
  • Coin collides with player
  • on collision, increment "coins" by one, then kill self

28
Make both teleport locations regions, then make a scene behavior to move the coordinates of your actor to the coordinates of the other teleport location.
It could be wise to offset the locations so you dont have your actor constantly teleporting between both destinations. IE; teleport your player to the left or right of the other region so the actor doesn't immediately teleport back to the starting point.

If you're using the generic "follow player" behavior for the camera, you're probably going to have to make another invisible actor (with no collisions) for your camera to follow, and just have the invisible actor follow your player.

The invisible actor will not teleport and should move through the level towards your players position.

29
Ask a Question / Re: Need help with Health Behaviour.
« on: August 22, 2012, 02:57:12 pm »
Make it test to see if the new upgrade will exceed 100.
So if your HP is 50, and you get a heart, your HP will go to 75.
If you're at 75, it'll increase to 100.
But if you're at 100, you don't want it to be 100 so theres a sort of a simple way of doing this that will cover all scenarios:

New HP = current HP + heart HP
If new HP < max HP, set current HP to new HP
If new HP >= max HP, Set current HP to max HP.

30
Ask a Question / Re: Game Crashing when creating an actor.
« on: August 22, 2012, 11:30:17 am »
So you're following abigal's tutorials there i see..
Print "50 kills reached" after you get 50 kills, but before you spawn the actor.
Then print "actor spawned" after you spawn him.
Print to the console wherever you think there may be an issue..
I'm still new to Stencyl, but I'm NOT new to coding, and I'm really confused by this.

You want to figure out EXACTLY what is causing the issue before you can fix anything.
Which is why the print tool is your best friend during debugging.
--------------
Make sure you take all Physics effects off that achievement actor.
Put it in the doodads group.
Also,
I killed 58 things and only got the notification when the scene was loaded.
THAT's when it started getting laggy

Pages: 1 2 3 4