Author Topic: This is kinda cool...  (Read 3596 times)

sam

  • Fanatic
  • ***
  • Posts: 303
  • This statement is false.
    • MSN Messenger - samlancashire@hotmail.com
    • View Profile
    • samlancashire.com
    • Email
This is kinda cool...
« on: 2006-07-01, 10:49:34 AM »
http://www.geocities.com/sam_2d_online/arrowtest.zip  (13KB)

I was just trying out some things to see if an archery game could be made... So far it's working good. I was messing around with collision effects and got this to happen. I was trying to make it so the arrow stops when it hits the target but, this happened. I may just leave it like this, but if anybody has a good idea on how to make it stop then please share.

I haven't even tried to make a power bar yet but I think it could be done... :)

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: This is kinda cool...
« Reply #1 on: 2006-07-03, 08:50:35 AM »
Why did you check so many boxes on the collision definition?  If all you want to do is make it stop, just check the box to make it stop, it looks like you have 4 other boxes checked too.  I tried it and it stops, but gravity does make it slowly go down after it stops.  Also, is there some goal besides making it stop?  Doesn't something else have to happen besides just stopping if you're going to accomplish anything?

sam

  • Fanatic
  • ***
  • Posts: 303
  • This statement is false.
    • MSN Messenger - samlancashire@hotmail.com
    • View Profile
    • samlancashire.com
    • Email
Re: This is kinda cool...
« Reply #2 on: 2006-07-03, 09:48:09 AM »
I was trying to make it stop alltogether without sliding down (like a normal arrow would do). So I was basically just checking random boxes after a while to see what would happen. Eventually Ill make a game out of it and there will be points added and other stuff but for now I just want to get it working.

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: This is kinda cool...
« Reply #3 on: 2006-07-03, 06:05:06 PM »
I think you should be able to create an instance of another sprite at the same location where it stopped by using a special function.  You could create a sprite that has the gravity set to 0 and then it wouldn't fall down after it stopped (you'd have to delete the old sprite and create a new one that is not affected by gravity at the trigger location).

sam

  • Fanatic
  • ***
  • Posts: 303
  • This statement is false.
    • MSN Messenger - samlancashire@hotmail.com
    • View Profile
    • samlancashire.com
    • Email
Re: This is kinda cool...
« Reply #4 on: 2006-07-04, 11:44:06 AM »
oh right. Thanks. ;D