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 - miketv

Pages: 1 2 3
Ask a Question / Actor Behavior or Scene Behavior?
« on: January 17, 2014, 12:45:10 pm »

Ask a Question / Re: "topdown turret"
« on: January 15, 2014, 01:50:22 pm »
I think this is what I needed to study to get a grasp on how to use attributes. Thanks again for uploading this.

Ask a Question / Re: "topdown turret"
« on: January 15, 2014, 01:31:39 pm »
wth? that looks like exactly what I need. I'll check out the code. Thanks!

Ask a Question / Re: "topdown turret"
« on: January 14, 2014, 02:23:37 pm »
Something going on in those last 2 blocks,

Those are the un-modified ones I got from Stencyl's standard behavior's the motion behavior called Face Direction Of Motion. It probably looks weird because it's converting the speed into an angle (I think that's what's going on, at least...)

Ask a Question / Re: Stencyl attributes: basic concepts & mechanics
« on: January 14, 2014, 02:08:33 pm »
2. Actor->Properties->width of actor  <---- Drag it onto 'set cannonLength to'
My fault -- I should have mentioned I'm still using Stencyl 2.2. It looks like the actor's width is found in Collisions in this version, & there doesn't seem to be anything to drag. Thanks for the input.

Your second method gives me some ideas. Combined, the 3 answers I received should help me sort this out....I'm probably just overthinking it.

Ask a Question / Re: "topdown turret"
« on: January 14, 2014, 01:26:17 pm »
I've got 3 behaviors:  cannonFire, cannonRotate, & one I downloaded from StencylForge called Face Direction of Motion

Not sure if I'm doing it right...I attached .PNGs. The Face Direction Of Motion behavior is broken into 2 pics, for some wouldn't let me copy the If and the Otherwise If blocks in the same pic.

If it helps:
cannonFire & cannonRotate are keyboard events I've attached to the cannon.
FDOM is an always event I attached to the shell.

Let me know if I'm not posting the info correctly

Ask a Question / Re: "topdown turret"
« on: January 13, 2014, 03:24:36 pm »
if anyone wants an interactive example of the problem I'm having....

Ask a Question / Stencyl attributes: basic concepts & mechanics
« on: January 13, 2014, 03:17:03 pm »
Could one of the more experienced users write a tutorial that covers the basics of attributes?
I understand the concept behind attributes, but I don't know how to make them work.

Like, if I create a number attribute called cannonLength, how can I use my new blue tag to actually mean "this is the length of the cannon" (as opposed to meaning "this is the speed of the projectile", or "this is the amount of projectiles fired", etc.)?

Ask a Question / Re: "topdown turret"
« on: January 13, 2014, 02:04:49 pm »
thanks again for the input. I understand the concept of attributes, but the mechanics are where I'm having a problem. I'll start a new thread to that effect.

Ask a Question / Re: "topdown turret"
« on: January 13, 2014, 10:48:13 am »
thanks for the advice. It's not working out quite like I expected, though. Maybe I'm using the radians block wrong?

Also, should cannonLength & cannonAngle be attributes or game attributes?
This 'attribute' stuff is very confusing....I don't get how the blue tags are supposed to know my cannon's length & angle...

Resolved Questions / Re: Why do some actors appear in front of others?
« on: January 11, 2014, 09:54:29 am »
in the scene you're working on, go to the Layers tab in the bottom right corner & press the + button to create a new layer. Then place your actors in the ones you want to be in back on layer 0, & place the ones you want in front on layer 1.
It should help.

Ask a Question / Re: "topdown turret"
« on: January 11, 2014, 09:23:13 am »
I've got part of the problem solved.
I got the angle & direction of the barrel to dictate the angle & direction of the bullet by using
point LastCreatedActor towards DirectionOfSelf degrees and
push LastCreatedActor sharply towards DirectionOfSelf degrees at 160 force

 but I still can't get the bullet to spawn at the end of the barrel. Any help? Seems like I could use the
create Actor at (x:__ y:__) block, but what should I use to fill in the X & Y blanks for a rotating turret?

Ask a Question / "topdown turret"
« on: January 10, 2014, 10:42:13 pm »
I'm trying to set up a mortar-launcher-type thing, & I'm wondering: how can I get my bullet to spawn at the end of my barrel?

Here's the setup:
I have a PLAYER (my turret) with an origin point set at Left-Center. When I hit the UP key, it rotates the barrel 5degrees clockwise, & when I hit the DOWN key it rotates the barrel 5degrees the end of the barrel is swinging up & down on the right side of the turret, basically.
When I hit the Right key, it creates & launches an ACTOR (my bullet) from the center of the turret....but that's not what I need. How do I offset the bullet so it comes from the end of the barrel & goes in the direction the barrel is pointing?

I've seen tutorials on how to do this with a mouse (like the Balloons example), but I can't find any info on how to do it when the barrel's angle is set by the keyboard. Any help is appreciated.

News / Re: Stencyl 3.0 - Design Once. Play Anywhere.
« on: January 02, 2013, 12:17:44 am »
this is starting to look like the downfall of Code communication form the devs....

News / Re: Stencyl 3.0 - Design Once. Play Anywhere.
« on: December 29, 2012, 09:01:17 am »
it seems that there's a couple collision related bugs such as the snagging issue us testers have found that seem to be the most pressing unsolved ones. other than those I can't think of any major issues. multiple collisions are still an issue for 3.0?

Pages: 1 2 3