Game almost complete, need help with ONE thing PLEASE

VGXVGX Member Posts: 796
edited November -1 in Working with GS (Mac)
My game is almost complete just adding few extra things to spice it up but need help...

basically each level of my game will have a special item you can collect.

however once you collect this item and decide to play that level again (even reset the level) that item will no longer be there because you already got it. How do I do this?

Thanks

Comments

  • Benjamin_m5Benjamin_m5 Member Posts: 646
    Set an universal boolean attribute called ItemCollect or something. Then You make a new actor called ItemCollect.
    In this actor you drop a load attribute. load attribute: ItemCollect, key:ItemCollect01 for Level01.
    You make this for each level but in every level only that from the level!

    In your item actor you make a rule: when actor overlaps or collides with player or whatever change attribute ItemCollect to true.

    Then you make a save attribute in the same rule key: Level01 save attrinute: Item Collect.
    You must change this in every level.

    Example:

    For the Load attribute

    You are in Level02. In actor CollectItem you have only the load attribute with key: itemCollect02 and load attribute: ItemCollect.

    In Level03 you have only the load attribute in the ItemCollect actor key: ItemCollect03 and load attribute ItemCollect. and so on in every level.

    For the Save Attribute

    You are in Level02. Drop the Actor ItemCollect on the scene, double click it, and unlock it for rules. In item actor you only have the rule when actor overlaps or collides with player or whatever change attribute ItemCollect to true and in the same rule save attribute key: Level02 save attribute: ItemCollect

    And this in every level with each nuber of level.

    That should work
  • VGXVGX Member Posts: 796
    sorry but how do I add level 1 in an attribute?

    Load attribute - item collect to (level 1?) <---what am i doing wrong?
  • Benjamin_m5Benjamin_m5 Member Posts: 646
    Sorry..

    For the save attribute...if you use in level01 in the save attribute key: ItemCollect01 you must use in your load attribute for the same level the same key: ItemCollect01.

    I've this from a YouTube video. it should help you too...:)

  • VGXVGX Member Posts: 796
    sorry just not working, that video doesn't help with what I am doing. is there something i need to do in the reset? also i don't understand the (level01) you are mentioning, do i need to make an attribute called level01?

    sorry for being thick
  • Benjamin_m5Benjamin_m5 Member Posts: 646
    no...please write exactly what you don't understand?!
  • VGXVGX Member Posts: 796
    to be honest, all of it. (this is probably so simple but can't see what i am doing wrong)I have tried all the above but none of it works. clearly i am doing something wrong.

    You mentioned create boolean attribute called itemcollect, but then you say itemcollect01, (whats the 01)?

    also you say level01 (whats this, do i need to make an attribute called level01?)

    if possible could you make a demo for me?
  • Benjamin_m5Benjamin_m5 Member Posts: 646
    Yes...I must work a half our now then I would go home and make for you a little tutorial!
    Will post it here!!
  • Benjamin_m5Benjamin_m5 Member Posts: 646
    Hey there

    I've made this video!! If you have questions ask...



    Cheers
  • Benjamin_m5Benjamin_m5 Member Posts: 646
    sorry don't work...take this!!!
  • VGXVGX Member Posts: 796
    video is private, can't play
  • Benjamin_m5Benjamin_m5 Member Posts: 646
    Now it should work!!!
  • VGXVGX Member Posts: 796
    Thank you that is very kind of you to make that video. I will definitely send you a promo code once my game is done (shouldn't be too long). Add me on GameCenter - VeiraGames
  • Benjamin_m5Benjamin_m5 Member Posts: 646
    Thanks much :)

    Added you to GameCenter
Sign In or Register to comment.