Welcome Guest ( Log In | Register )

[ Big| Medium| Small] -



Post new topic Reply to topic  [ 4 posts ] 
    Meness
  Sat Aug 25, 2012 11:23 am
♥
User avatar
Member


Location: Malaysia
Hi, I'm participating in the Ludum Dare competition atm and I've decided to use Construct 2.

I've had no past experience with the program so excuse the noobishness.

My game has the player going around absorbing other 'orbs'. I've set this up to receive a point in a certain variable each time the player absorbs something. However, my problem is that after collision, I can recollide with the object again, thus giving the player more points that intended. It might be a bit difficult to understand so I have uploaded my project for you to inspect.

http://www.mediafire.com/?33w8h14xrj6oj4h

Thanks in advance!

_________________
Support DJ Games' Newest Project!
Game of Awesomeness

Help me improve my English! PM me to write you an article, review, or even stories for you :)


Top Top
Profile      
 

    Toams
  Sat Aug 25, 2012 12:56 pm
THAT foreigner
User avatar
Sponsor


Location: Netherlands
So, you don't want this to happen?

You should add a switch/toggle to each orb, that turns it 'off' when the player hits one.
I'm not practiced in Construct, so I can't give you the specifics of the program to do this.

Maybe here's something: http://www.scirra.com/tutorials/158/ver ... tes/page-1 ?

_________________
?????


Top Top
Profile      
 

    onzephyr
  Sat Aug 25, 2012 3:28 pm
User avatar
Awesome Bro

Pretty much what Tomas said. fast fix is to add an instance variable to each of your 'orbs'. then in the collision event. check to see if the twitch is on ----> do actions and add an action to toggle the switch .

Based on your file it would look something like this.

-----------------------------------------
Player-- On collision with "aggression"
Aggression-- Variable = 0
-----------------------------------------> Player 8direction disabled
-----------------------------------------> aggression solid disabled
-----------------------------------------> aggression start fade
-----------------------------------------> sprite2 start fade
-----------------------------------------> Player 8direction enabled
-----------------------------------------> system add 1 to aggression
-----------------------------------------> aggression set Variable to 1


bonus of the switch is if you ever need to reset an orb for some reason you now have a built in way of doing it.
Good luck with Ludum dare! I'll be joining the chaos as well but won't get a chance to start anything more then pen and paper until later today.

_________________
Image


Top Top
Profile      
 

    Meness
  Sat Aug 25, 2012 5:37 pm
♥
User avatar
Member


Location: Malaysia
Wow, it was that simple...and I was fretting over it for so long too :x I feel very useless now lol

Thank you for the quick responses!

And thanks for the wish onzephyr. Good luck with your game too!

_________________
Support DJ Games' Newest Project!
Game of Awesomeness

Help me improve my English! PM me to write you an article, review, or even stories for you :)


Top Top
Profile      
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: No users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

cron
We are an independent, not-for-profit game making community.
Homepage
Board Index
About Us
Downloadable Games
Free Browser Games
Games in Development
RPG Maker Support
Game Maker Support
Construct 2 Support
HBGames the eZine
Advanced RPG Maker
Site Announcements
Powered by phpBB © phpBB Group