LittleStain's Recent Forum Activity

  • I created a Capx to show you what I mean:

    Here's the capx

  • This topic is about showing quotationmarks in a string.

    I'm not sure it will help you, but I'm not sure what you are trying to do except finding " in a string.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I made an or block to check if one of the values is still not true.

    If one of the values is not true, the safe won't open, right?

    When all the values are true (the else statement) the safe will open.

    If you want to know if a value at a specific spot in an array is 1, you can use:

    Array compare at x,y = 1

  • I guess a simple or block would do the trick:

    Variable 1 is not true

    or

    variable 2 is not true

    or

    variable 3 is not true

    • safe stays locked

    else

    • open safe
  • Please upload your capx somewhere (dropbox or something) and share the link.

    offset (-1,-1) means it will be checked if your player is overlapping something when it's moved one pixel to the left and one pixel up.

    Is this what you are trying to check?

  • You have an event on touched yellow sprite - destroy yellow sprite.

    There are no other conditions to this, but I guess you only want it destroyed when cards match.

    I'm also not sure why you would use the yellow sprites are seperate from the card sprite.

    To see the win is true, it is checked if two global variables are the same. These variables are set from instance variables on the cards. But nowhere in your events are those instance variables changed. so they are always 0, so they are always the same.

  • Well you posted your question while I was asleep and decided no-one wants to help before I woke up.. (It's night in Europe)

    Maybe having a bit more patience would help.

    I will have a look at it now and see if I can help.

  • 0 and 10 are just numbers I chose, they would mean you have 10 maps.

    floor means rounding down. 5.4 = 5 , 6.7 = 6 etcetera.

  • So here I implemented what I talked about.

    It's not the most beautiful solution, but it works

    Helped2

  • The next step seems to be asking someone else to do it for you.. :P

    This can be done in faster ways but just so you can learn I'll explain it in a way you can understand.

    Create a global variable, let's call it NextMap

    Event:

    map1 <-240

    or

    map2 <-240

    or

    map3 <-240

    etcetera

    action:

    set global variable NextMap to floor(random(0,10))

    subevent:

    if global variable = 0

    • create map0

    if global variable = 1

    • create map1

    etcetera.

  • Yes, I understand, I know what gaps are..

    I also know programming is being creative..

    Like I said, why not spawn small sprites at the corners of the laserboltscan block so you can exactly check the outsides of your laserbeam overlapping a tilemaptile.

  • Yeah, you're right, this isn't any better than what you had..

    oh wait it actually does something.. hmmmm

    Changed it a bit to make it even better, but well, it's probably still not good enough.

    Maybe you should try and spawn 1px by 1px blocks..

LittleStain's avatar

LittleStain

Member since 26 Apr, 2011

Twitter
LittleStain has 4 followers

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies