Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Rotate, point and move sprites in various directions.

Author
Message
400 pound
17
Years of Service
User Offline
Joined: 4th Sep 2007
Location:
Posted: 23rd Feb 2012 23:46
I've done lots of stuff with DBPro and am now learning AGK. I want to point my spites and move them forward and backward at various angles but have only achieved up down left and right flipping the sprite image to give the impression of directional movement. Is there any way of rotating and pointing sprites at various angles and moving them off in that direction?

For example;

1) Can I rotate and point my space rocket at a planet at say 22 degrees and fly in that direction?

2) Is curved flight possible ie to fly around a planet?
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 24th Feb 2012 00:46
Here are a few that might help get you started:


400 pound
17
Years of Service
User Offline
Joined: 4th Sep 2007
Location:
Posted: 24th Feb 2012 01:40
Thanks for quick response.

Seems strange that there isn't a 'move sprite' command like the one in Dark Basic Pro. That command will 'move the sprite a specified distance. Used in combination with the rotate sprite command a very simple top-down player character can be achieved very easily. The velocity must be a real value' Command is 'Move Sprite Sprite Number, Velocity.' This would achieve everything I want to do.

Moderator - please can you pass this on for consideration in any AppGameKit updates.

Login to post a reply

Server time is: 2024-11-23 04:19:44
Your offset time is: 2024-11-23 04:19:44