Hello Guest

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

Pages: [1]
1
Support / Making the game wait for animation to finish?
« on: May 22, 2013, 03:41:47 am »
Hi, I have a function in which I'd like to have an animation play, destroy the animated sprite when it finishes, and then execute the rest of the logic in my function (all of this being visible to the player). Is this possible? If so, how would I go about doing this? Also, can you briefly explain what's going on behind the scenes when an animation is performed? Does an animation secretly use the game's update loop? Thanks!

2
I figured out the problem! Parent objects must have a z value (depth) > 0 for their children's z values to visibly matter. Thanks for the help!

3
Ok I'll consider it if I have a lot of trouble. I noticed that adjusting the z value on any object attached to a parent doesn't have any effect on visibility whatsoever. Do you think this is also related to my possibly incorrect camera setup?

4
Nope I'm using the tk2d camera, which has to be orthographic.

5
Yes. Also I overlooked something. It turns out that solid images appear in front just fine, while transparent images always appear behind. Assuming their Z value is set so that they're located in the front of course.

6
Yes but it gets displayed behind the solid image instead of in front of it. This happens regardless of my z position value. Transparent images have this problem too. I found this out by increasing their scale so that they're bigger than their solid image parents.

7
Hm I seem to have replied prematurely. So it seems I can see the transparent sprites in the scene view, but not in the game view. Any ideas as to why this might be?

8
Thanks for the quick reply. That worked, though I can't believe that I hadn't thought of that :P

9
Hi Unikron Software,

Great work on this toolkit. Is it possible for me to overlay a semi-transparent sprite from one sprite collection on top of a non-transparent sprite from another sprite collection on the same game object? This way you can see the non-transparent sprite through the transparent one that's on top. If so, what would be the best way to achieve this effect? Thanks in advance!

Pages: [1]