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

Pages: 1 ... 40 41 42 43
616
Resolved Questions / Detecting Scene regions for Actors [solved]
« on: December 30, 2014, 09:20:17 am »
I have created a small region in my scene called 'Bridge Region', when my Player Actor moves into this scene I having debugging to Print 'here' so I know he has been detected.

I am having trouble figuring out how to detect regions from outside the Scene coding though.  For example:

I have a few enemy actors set to a 'Follow Target' behaviour, but I'm only wanting this to active when the Player Actor steps into a certain region.  How would I go about this without setting up a global variable to pass between Scene / Actors.  (I wish I could just use global behaviours everywhere!!)

Thanks

617
Ask a Question / Re: How do I Z-Layer actors on screen?
« on: December 30, 2014, 07:40:50 am »
UPDATE: I nearly achieved this by 'Sending Sword to Back', rather than 'Back a layer', but now the sword is also behind my Player Actor whom the sword is hitting.  (Sword is the meat in the sandwich between Player and Knight)

Any ideas why 'Sending it back a layer' just made it flash, and 'Sending it to back', made it play the full animation?

618
Ask a Question / How do I Z-Layer actors on screen?
« on: December 30, 2014, 06:08:56 am »
I have a Knight swinging a sword created as separate Actors, depending on whether the Knight is facing Up or Down I'm looking to layer the sword so it shows on the correct side of the Knight.

I've been playing with Z-layering blocks but not having much luck. In my Scene I have 4 layers with game characters on layer 2

With the current set up, the sword flashes on and looks like it is in the correct position but keeps flashing on and off
Any ideas on how to achieve this?

Thanks

619
Resolved Questions / Re: How do I pass an attribute from Actor to Scene?
« on: December 29, 2014, 09:05:19 am »
Thanks Liberado, that last method worked ace! :)

620
Brilliant, that worked a treat! Thanks!

621
Resolved Questions / Re: How do I pass an attribute from Actor to Scene?
« on: December 29, 2014, 04:19:11 am »
I set up a new behaviour for the Main Character to work out his health / lives but because this behaviour is attached to the actor and not the scene I couldn't pass his health points across to the scene to be drawn.

Should I not have bothered with creating the 'Quasi_Health' Behaviour and just done it all under the Scene?

Only his Lives will be past to the next scene, his health will be restored.

622
Resolved Questions / Re: How do I pass an attribute from Actor to Scene?
« on: December 29, 2014, 03:45:12 am »
I didn't see those descriptions! 

At the moment I'm using a Global Variable to achieve what I'm wanting to do.  But wasn't sure if this is 'best practice' and if there was a better way?

623
Resolved Questions / Re: How do I pass an attribute from Actor to Scene?
« on: December 29, 2014, 03:31:17 am »
Thanks, not quite got it working.

I have set Actor Value 'health' for self to "Quasi_Health"

Then in the scene I have 'Get Actor Value 'health' for 'MainCharacter1'

NOTE: Health is just typed in, I figured if I created a variable then I'd be back at the root of my problem...

624
I have a 'heart.png' to represent a players 'life'

I have set up 'heart_life' as an image attribute which 'heart.png' is attached to.
I have then set up 'life_instance' as an image instance to draw the image on screen.

I am wanting to display this 'life_instance' 3 times if Player has 3 lives (all next to each other), then twice once he loses a life, and finally once.

When I try and do this, it only displays the position of the last 'attached life_instance'.

How do I display multiple instance of the one image instance?

Thanks

625
I am wanting to pass an  Attribute (Health points of Player Actor) to the Scene so I can display it as a number on the HUD.

The player health starts at 10, every time he gets hit, it decreases by 1.  This I have done, now I just want to pass that number to the scene so it can be drawn on screen (updated on the HUD).

626
Resolved Questions / Re: Instance of actor not re-creating [Solved]
« on: December 28, 2014, 07:58:03 am »
Gotchya! Thank you very much for your help today.

627
Resolved Questions / Re: Instance of actor not re-creating
« on: December 28, 2014, 07:01:08 am »
Amazing! Would you mind explaining to me what difference that made?

628
Resolved Questions / Re: Physical collisions with zero gravity
« on: December 28, 2014, 06:55:38 am »
That has worked for when they are stood still, is there a way to make it so if I leave the Player Actor stood still and the Enemy Actor collides into him, the Enemy Actors have  some force so they can push him around a bit?

The effect I am looking for to make them 'bump against each other', as if to adults were running into each other.

629
Resolved Questions / Re: Instance of actor not re-creating
« on: December 28, 2014, 06:32:05 am »
Brilliant!  Only issue now is they tend to leave the sword behind a little if after the sword animation has started the Knight moves into a different position via the collision.  Have I used the best method of attaching the Sword to the Knight?

630
Resolved Questions / Re: Physical collisions with zero gravity
« on: December 28, 2014, 05:02:59 am »
Thanks, that works. 

I see in the Physics Tab it has a maximum of 1, yet I've put it as 2?

Pages: 1 ... 40 41 42 43