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

Pages: 1 2
16
I am working on a game in which a platform is created after another platform. To do this I am using "Last created actor" block. However, using the "Last created" block or the "last collided" block limits the amount of actors you can use in a scene e.g - when another actor  ( In my case :) )  other than a platform is created it becomes the last created actor.

Is there any other way to identify a certain actor more specifically like ." Last created platform" or "Last created actor type"  instead of using  last created actor / last collided block .

17
Ask a Question / Re: random jumping animations?
« on: April 13, 2015, 03:18:20 pm »
Hey you can create a number attribute (jumpAnimation) :)  Then set the attribute to a random number between a certain range( Using the random number between block) - depending on the number of jump animations you're planning to use - Let's just say random between 1 and 4.

Then do something like;
If jump key is pressed
{
 if jumpAnimation = 1
{
switch animation to jump animation 1
}
}
Hope that helped :)

18
Thanks. The animations work fluidly now.

19
Sorry for the double thread - a problem with my browser - did not see the first thread until I had posted again.

The threshold for the accelerometer worked. As for checking if the animation is'nt already playing - I do not know how to do that could you explain a bit further.
Great tutorials by the way - subscribed.

20
I am finding it difficult to make the player fluidly switch to the animation that corresponds with its direction of movement e.g Left - Walking animation for when walking left. Currently the player switches animation rather sharply/instantly. Even the idle animation does not have time to show for the player is hardly ever still. I am using accelerometer for movement. I have attached the block of code i am using.

21
I am finding it difficult to make the player fluidly switch to a animation for the direction of movement e.g move left - switch to left walking animation.  Currently the player quickly switches animation rather sharply/ instantly. Even the idle animation does not have time to show or I cannot see the transition( I cannot see that fast). I am using the accelerometer for movement. I have attached the block of code I am using.

22
Resolved Questions / Re: Character gets stuck halfway into floor
« on: March 22, 2015, 01:40:36 pm »
You could try to enable continuous collision detection for the player

23
Resolved Questions / Re: Character gets stuck halfway into floor
« on: March 22, 2015, 01:09:18 pm »
That's Interesting. Is the floor a tile or a separate actor?.

24
Resolved Questions / Re: Character gets stuck halfway into floor
« on: March 22, 2015, 12:16:16 pm »
Have you checked if -  1.They're in the same layer 2.Have  specified what the actor collides with e.g groups or specific a specific actor   and if you have made one a sensor.

25
Shared Resources / Re: Shatter Effects
« on: March 22, 2015, 11:11:38 am »
This was interesting and useful thanks.

26
Just figured it out -  sort of.  Used If (  ( x-centre of last created actor + width of self) < screen width :)

27
This is what I was waiting for . Stencyl has really grown. Definitely planning for a studio subscription now :)

28
Hey I am currently working on a platformer-type game whereby a player controls a character while creating platforms at the same time. Everything works well until the create button is pressed when the last created platform is halfway into the scene after which the create event I have put together  does not work once the button is pressed again. I need help around this. So far I am trying to find length of last created actor and trying to make a Boolean that determines if ( x-position of the end of last created actor is less than scene width) is  true or false.

Pages: 1 2