Author Topic: Newbie question - how to move a sprite  (Read 4128 times)

ststrou

  • Visitor
  • *
  • Posts: 8
    • View Profile
Newbie question - how to move a sprite
« on: 2007-11-05, 08:43:12 PM »
Sorry in advance for what is probably such a simple question.  I stumbled on SGDK2 a week or so, have done the tutorial, read all the help and perused some of the postings here.  Looks like a great framework, but having trouble getting off the ground.  I created a simple project that has a rotating sprite and that was straightforward, but now I would like to make it move across the screen on its own (i.e. not due to user input).  Try as I might I cannot get my sprite to move.  I added sprite rules for AlterXVelocity, AlterYVelocity, PolarAcceleration, MoveByVelocity, AccelerateByInputs and LimitVelocity.  Nothing has worked.   Any help would be greatly appreciated!

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Newbie question - how to move a sprite
« Reply #1 on: 2007-11-06, 06:35:09 AM »
So the sprite's showing up and all those rules are active and it's still not moving?  That's odd.  Maybe you could post the project somewhere and I could look into it.  If you know how to FTP, try posting it at ftp://enigmadream.com using username sgdkuser and password sgdkuser (if you don't have another place to post it)

Glad that you found and took an interest in SGDK2... what led you to SGDK2?

ststrou

  • Visitor
  • *
  • Posts: 8
    • View Profile
Re: Newbie question - how to move a sprite
« Reply #2 on: 2007-11-06, 07:51:24 AM »
Hmm, very strange.  I tried adding in all those rules again this morning and now it works as expected.  Don't know why, but I'm happy now.  As for what led me to SGDK2, I used to make games in high school (early 80's).  Back then we didn't use graphics yet - it was all done with creative use of special ASCII characters.  Sounds lame but it was a lot of fun and the games were pretty fun to play.  I've always wanted to go back and do that again but with modern graphics, sound etc.  Building a game directly on top of DirectX was more than I wanted to bite off however, so I started looking for a framework or development kit of some kind.  Googled for "Game Development Kit" and voila, found your program.  It is exactly what I was looking for.  Glad to see so much activity on this site too.  Thanks for doing this!