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

Pages: 1 2
1
Ask a Question / Re: How do I create lives for a scene?
« on: December 02, 2013, 07:20:59 pm »
Well this is quite embarrassing. Funny how one can miss the simplest things. Well it solved the issue.

Thank you again Photon for everything.

~yelmusleh

2
Ask a Question / Re: How do I create lives for a scene?
« on: December 02, 2013, 07:10:33 pm »
Photon... I completely forgot about spawning the actor on each scene. I will try that now

3
Ask a Question / Re: How do I create lives for a scene?
« on: December 02, 2013, 06:49:38 pm »
Okay... the first picture will be of the level one and how I incorporated the life attribute into it.

The second picture is of the life attribute itself (both created and drawing)

The third picture is the actual life attribute behavior.

Finally, the fourth picture is of level two.

I actually incorporated the timer into each of the levels. So the timer you see in the fourth image is actually on all the levels we created.

Hope this helps. If you need any other pictures I will be happy to send them over.

4
Ask a Question / Re: How do I create lives for a scene?
« on: December 02, 2013, 03:16:47 pm »
Oh now I see what you mean. I actually did it correctly. I had created LifeCountStorage and placed that attribute into the purple block. Then in the LifeCountStorage Attribute I set it to 4 for it to draw it 4 times. But it didn't work.

5
Ask a Question / Re: How do I create lives for a scene?
« on: December 02, 2013, 03:09:18 pm »
I am sure that is what it was, but you just lost me...

6
Ask a Question / Re: How do I create lives for a scene?
« on: December 02, 2013, 02:50:01 pm »
Yes that worked!

7
Ask a Question / Re: How do I create lives for a scene?
« on: December 02, 2013, 01:59:54 pm »
It was already a text attribute. I just put in the number cause I have no idea what I am doing. Anyways, I went ahead and changed it back to zero. The lives are still not popping up however.

8
Ask a Question / Re: How do I create lives for a scene?
« on: December 02, 2013, 06:19:19 am »
Thanks for the article link.

Okay to clarify with you.

You are correct in regards that I do not see any drawing at all. It does show up if I set the sprite to 'show', but when it is set to 'hide' it disappears.

I set the X Origin Attribute to 0.
I set the Y Origin Attribute to 0.
I set the X Offset Attribute to 10.
I set the LifeCountStorage Attribute to 4.

The four Attributes above are located in an actor behavior I created called 'GameLives'.
I then have 'GameLives' attached to my Actor called 'Life'.
Then I attached 'Life' to my test scene called 'Lives'.

Also, I am no longer using 'Create Actor Type'. Instead, I just added it directly onto the scene using the 'pencil' tool. If this won't work with your tutorial (Photon Game Development: Making a Pictoral Life Count), then I can change it.

9
Ask a Question / Re: How do I create lives for a scene?
« on: December 01, 2013, 01:50:50 pm »
When you say spawn, I assume it means "Create Actor Type". However, when I tried doing that it didn't work when running the scene. When running the scene, there should be four instances of the life actor right?

Also, since the timer is built in the level, it is not a behavior, however the Life tutorial I built in a behavior which I then attached to an Actor Type.

So the Attributes I created in the behavior do not appear in the level where the timer is.

So simply issue one is that I can't make the life actor appear on the level, issue two is that I can't use attributes I created for the Life stuff in the level where the timer is.

Finally, I do not know how to code it so that when the timer ends, it ends the scene.

10
Ask a Question / How do I create lives for a scene?
« on: November 30, 2013, 07:21:05 pm »
This is what I currently have. I am trying to get it so that when the timer reaches 0 it will take a "life" actor away from a row.

I want there to be four instances of the "life" actor, each one disappearing once the timer reaches 0. If it reaches 0 for all of them, then I want it to go to game over.

11
I have got this resolved.

Thanks!

12
Resolved Questions / Re: Switching Actor Types
« on: November 29, 2013, 01:24:10 pm »
This has been resolved.

Thanks for the help!

13
Resolved Questions / Re: Switching Actor Types
« on: November 17, 2013, 06:35:51 am »
I was looking through resolved questions before posting it. It was unintentional posting this question under "resolved questions".

I forgot to mention that there are multiples of each Actor, so there is more than one Actor 1, Actor 2, etc. on the screen during the game.

Sorry if this has caused a fault in your response.

I went ahead and created the attributes of Switch_X and Switch_Y.

I have posted what I have completed in the attachment.

Did I set this up right? and what should I do from here?


14
Resolved Questions / Switching Actor Types
« on: November 16, 2013, 08:33:45 pm »
Hi there,

I basically have 4 Actor Types, on the level there will be Actor 1, Actor 2, Actor 3, and Actor 4.

Upon clicking a power up (which I have built), I want the positions of Actor 1 and Actor 2 to be switched.

I would like the power up to also switch the positions of Actor 3 and Actor 4.

Essentially after the click of the power up, I want Actor 1 to take the place of Actor 2, and Actor 2 to take the place of Actor 1.

Likewise, Actor 3 will take the place of Actor 4 and Actor 4 will take the place of Actor 3.

How can I do this?

15
I tried bonechills idea first and it worked if the actor was not clicked on. However, if I clicked on the actor before it dissappeared to trigger what it is suppose to, it freezes the game.

I also liked SadiQs idea, so how can I set gravity to an actor and have them fall offscreen without the scene following the actor?

Pages: 1 2