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

Pages: 1 2 3 4 5 6
31
do you have your boolean set to false by default, you shouldn't have to set it.



Ah. I'll check that. Thanks!

32
Quote
im also not sure why you want to kill the dog after each fetched bone. cant you simply change the animation?

the reason is there are different types of dogs for different purposes. When one type fetches a bone they get a certain reward. When a different type is sent, different events occur.

How is using a region any different than using an actor? If the dog starts in the region isn't the collision with the region going to occur instantly just like it would with an actor?

Thanks for the help. I guess I just don't understand.

33
I'm trying to create an actor (a dog) under another actor (a doghouse) and I want the dog to be able to leave the doghouse to fetch a bone and come back and kill the actor (the dog) on Collison with the doghouse.

"When creating" the dog,  I set a boolen attribute (isReturning?) = false.

When the dog collides with the bone, I set 'isReturning=true'.

The scene has a collision between groups event;
when dog hits doghouse
if isReturning?= true
kill actor 1
increment numberBones

the problem is, it kills Actor 1 and increments the bones immediately. It's like the 'isReturning?' Attribute is set as true by default.

Any suggestions on why or how this is happening and/or what I can do to correct it?

Thanks!

34
Hmmm... That didn't work for me.

I was able to use the trig function atan2(y2-y1 x2-x1) by reversing my factors to compensate for the new starting/ending coordinates.

35
I'm using the ATAN2 function to set an actor in motion from the center of the left side of the scene (x=0, y=240) toward a target actor by mouse click.  So far, so good.  When the actor gets to the target, I want it to reverse direction and return to (0,240) but "bounce" behavior ricochets off like a billiard ball at an angle.

I tried saying 'on collision' direction=direction + 180 degrees but didn't work.  I tried direction=negate (direction) but didn't work.

Any suggestions?  Do I have to recalculate ATAN2 using the collision coordinates or is there a simple solution?

Thanks!

36
Thanks!  I'm not concerned with low rating (at least not yet). I have a couple artists interested but they want to see it first. Maybe I'll try it as a StencilWIP first...  But I don't see an Upload button anywhere.  Can anyone point me in the right direction?

Waitaminute... I think I found the Publish button.

Thanks again!

37
Ask a Question / Are there rules regarding uploading "working demos"?
« on: April 22, 2014, 05:20:34 pm »
I should probably check with the specific websites, but I'm asking here first because I'm on here so much :)

I have a very basic Proof of Concept developed and I'd like to upload it to Kongregate and other sites. I'm hoping to get opinions and Betatest ('alphatest'?) Plus I want artists to be able to see what I have so they can improve upon it.

Does anyone know if there are rules which discourage/prevent this?

Thanks!

38
Ask a Question / Re: Frame Refresh vs Logic
« on: April 16, 2014, 01:17:34 pm »
Let me preface by saying,  "I sympathize".  But how would anyone code 'make a mental note'?

I do know there are several 'work arounds' that are basically ways of scripting 'make a mental note'. But you've disputed those as 'haphazard'. I was taught in my very first coding class that "if it works, it doesn't have to be pretty".

I understand we all want it to be as clean and efficient as possible, but if a work around works, I don't see anything wrong with it.

:-)

39
Ask a Question / Re: Framerates Drop When Adding Layers
« on: April 16, 2014, 12:58:23 pm »
Not sure if this helps, but I think tiles have to keep dimensions to powers of 2.

2x2
4x4
8x8
16x16
32x32

etc, etc...

That's the way it is with most other game engines I've worked with.

40
Ask a Question / Re: Health Manager Behavior Does Not Work
« on: April 08, 2014, 06:39:51 am »
//-All Custom Blocks can be found under the Custom tab on the right hand side of the screen.  If you click there, you should be able to find a block that says "Damage <Self> by Number."-//

Excellent! Thanks! It works!

Just as an educational/informative point here:
I couldn't retrieve the custom "Damage <Self> by Number" from the BattleScene because its attached to the ENEMY actor, so I had to rightClick>copy it and paste it into the BattleScene Events page.

I have a SCENE called BattleScene which has a collision event between two groups;
group 1 is PROJECTILES and group 2 is ENEMIES

..............
when PROJECTILES  hits ENEMIES (1st actor) (2nd actor)
>kill (1st actor)
>set SCORE to ((SCORE) + (1))
>damage (2nd actor) by (1)
................


That works great! Yay! Thanks again!
Hopefully others can learn from this thread as well. :)

41
Ask a Question / Re: Health Manager Behavior Does Not Work
« on: April 06, 2014, 01:06:54 pm »
Many thanks THX!

Maybe we just have to write our own "help thread" for it.

So, I've figured this much out...

In the Events of the Health Manager, there is a Custom Block called Damage, which has an Attribute called "Amount".

"Amount" is a blue attribute that represents the amount of damage the Actor receives. As in;

Damage (self) by (amount)

However, I can't find a "Getter" or "Setter" for "Amount"

Does anyone know how to assign a value to "Amount"?

Thanks!

42
Ask a Question / Re: Health Manager Behavior Does Not Work
« on: April 06, 2014, 12:51:02 pm »
Bump.

Does anyone have any help for the Health Manager?  I tried Stencylpedia but it doesn't list Health Manager as one of the Pre-Shipped behaviours.  Apparently it doesn't get updated very frequently.

Any help would be greatly appreciated.

Thanks!

43
Ask a Question / Re: Can anyone help with High Score problem
« on: April 01, 2014, 04:28:08 pm »
If it works, then you did it correctly ;-)

Congratulations!

44
Ask a Question / Re: Health Manager Behavior Does Not Work
« on: March 31, 2014, 06:06:16 pm »
One thing I've noticed is that the Health Manager changed certain Physics settings I had made. For example: "Can't be pushed" (or whatever the setting is called) is now "Movable" (using my phone to post so don't know the real terms. )

The enemies used to walk in a straight line, but with Health Manager attached, they bounce around Air-Hockey style.

Also, I was able to get the 'hits' (bullet collisions) to change the color of the Health Bar, but even at 0 the enemies don't die.

45
Ask a Question / Re: Health Manager Behavior Does Not Work
« on: March 31, 2014, 07:18:04 am »
Bump.  Is there a tutorial or example anywhere of the Health Manager?

Thanks!

Pages: 1 2 3 4 5 6