User Activity

  • Modified a comment on discussion General Discussion on Castle Game Engine

    Hi everyone, I posted a small sprite demo on GitHub maybe useful for those who are beginners like me with CGE. Sprite walks in eight directions with eight idle. Taken from the readme: Demo is divided into two parts: Goniometer Road demo The first shows with extreme precision the direction of the sprite in degrees. Using mouse click coordinates and Player position I apply the arctangent formula and I convert the value obtained in degrees. This way I get the requested direction. The second one is a...

  • Modified a comment on discussion General Discussion on Castle Game Engine

    Hi everyone, I posted a small sprite demo on GitHub maybe useful for those who are beginners like me with CGE. Sprite walks in eight directions with eight idle. Taken from the readme: Demo is divided into two parts: Goniometer Road demo The first shows with extreme precision the direction of the sprite in degrees. Using mouse click coordinates and Player position I apply the arctangent formula and I convert the value obtained in degrees. This way I get the requested direction. The second one is a...

  • Modified a comment on discussion General Discussion on Castle Game Engine

    Hi everyone, I posted a small sprite demo on GitHub maybe useful for those who are beginners like me with CGE. Sprite walks in eight directions with eight idle. Taken from the readme: Demo is divided into two parts: Goniometer Road demo The first shows with extreme precision the direction of the sprite in degrees. Using mouse click coordinates and Player position I apply the arctangent formula and I convert the value obtained in degrees. This way I get the requested direction. The second one is a...

  • Modified a comment on discussion General Discussion on Castle Game Engine

    Hi everyone, I posted a small sprite demo on GitHub maybe useful for those who are beginners like me with CGE. Taken from the readme: Demo is divided into two parts: Goniometer Road demo The first shows with extreme precision the direction of the sprite in degrees. Using mouse click coordinates and Player position I apply the arctangent formula and I convert the value obtained in degrees. This way I get the requested direction. The second one is a demo with a road background where you can move the...

  • Posted a comment on discussion General Discussion on Castle Game Engine

    Hi everyone, I posted a small sprite demo on GitHub maybe useful for those who are beginners like me with CGE. Taken from the readme: Demo is divided into two parts: Goniometer Road demo The first shows with extreme precision the direction of the sprite in degrees. Using mouse click coordinates and Player position I apply the arctangent formula and I convert the value obtained in degrees. This way I get the requested direction. The second one is a demo with a road background where you can move the...

  • Posted a comment on discussion General Discussion on Castle Game Engine

    But walk/run animation should stop only when the character reaches the endpoint of the route Yes, ideed it is currently. When I click at a certain point on the screen the character walks up to that point and then stops entering idle. Or change direction and animation if you click somewhere else before it reaches the target. So far so good :-) Now I try to use your example. Thank you.

  • Posted a comment on discussion General Discussion on Castle Game Engine

    Hi Michalis, thanks for the reply but there are some things that are not clear to me yet. At the moment with the mouse click on Lazarus CastleControl I can move a sprite in eight different directions and when it stops it enters its idle (eight different idle). Everything works very well. I can not really understand very well how SecondPassed works. If I write in CastleControl1Update SecondsPassed: = CastleControl1.Fps.SecondsPassed; Label1.Caption: = FloatToStr(SecondsPassed); the output is always...

  • Posted a comment on discussion General Discussion on Castle Game Engine

    Hello, I would need to play an animation and wait for it to finish before proceeding. It is an animation in which the sprite turns on itself before starting to walk. This way, however, does not fit Player.CurrentAnimationID := C_AnimTurnSprite; Player.CurrentAnimation.Play; Player.CurrentAnimationID := C_AnimWalkUp; Player.CurrentAnimation.Play; Obviously the second Play does not wait until the first one is finished. I looked in the TSprite Api Reference but I did not find anything. Cycles as While...

View All

Personal Data

Username:
valterhome
Joined:
2015-10-24 16:51:42

Projects

  • No projects to display.

Personal Tools