A few issues while working on a platformer
I have a hero and an enemy on stage, i want to trigger both the enemy animation of him walking towards the hero as well as him spawning his projectiles at the hero. The enemy presently spawns and throws his daggers at the hero but he does it from the start of the stage not when the hero gets within a certain distance. I would also love to have him move towards the hero rather than stand in the corner waiting to be killed. a ;ast issue i have is when my hero jumps instead of a regular parabolic jump he glides like a ninja if i press left or right while he is in the air i would love to fix the code that allows him to return to earth like a normal character would. Thanks in advance
Comments
now regarding checking for a spawned actor, i throw ninja stars and would like to limit them to only one on screen at anytime to allow a fighting chance to the enemy. how do i do that?
Also im working at my enemy recognizing when the hero is on the left different from the right and to face him at all times.
1. the jump issue as i still cant jump properly, when running character barely leaves the ground and when standing he jumps up but then i glide if i press left or right: it wont let me copy my code lol
2. the team would love the ability to stomp the enemy like in mario however the colliders are huge and are not stomp friendly, how can i get that to work?
3. again like mario i would like the characters to flicker when they are dying then disappear. the disappear i know how to do using destroy its the flicker that I need to understand.
3. Flickering can be done with interpolate self.color.alpha to 0 (more of a fade) or change attribute self.color.alpha to 0 (and back to 1) with a timer to change it from 1 to 0 and 0 to 1 (creates a flashing actor).
will also look into the flickering as you suggest.
Any ideas on the jump?
http://forums.gamesalad.com/discussion/38132/gs-tool-box-a-free-mega-template-ready-now/p1
I think you are pointing me in the right direction and I will try to get this working. Thanks again for your help!