Cameron9990's Recent Forum Activity

  • Or use "Set vector X". For example, if the enemy is to the left from the player:

    Enemy Set Vector X to -100

    But it's 8 direction, so I can't just do to left of player or something, like they come at the player from all directions.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I.e. if I wanted to make 8 variables a random number between 1 and 30 but I cannot allow them to be the same number.

  • Are they local variables in the screenshot? Also of course they work.

    No like blatantly do not work, you can't change a boolian if it's a local variable. And even after changing that I had other issues until I also changed other things into global variables

  • So today I learned that local variables... don't function. No seriously, most of the time they just don't work, literally every problem I had was fixed by changing all of them into global variables.

  • ...me suddenly realizing that it being local as apposed to global may be my issue...

  • If you are going to write events like this it's good to get used to debugging and logging. Add the Browser object to log the output and see if it's as expected.

    I normally would use the debug menu... but I can't view local variables in the debug menu.

  • Hi Cameron, This may or may not work but looking at the top of your events I see you have on anim end OR is respin > Set ROdds and Set Respin to False. What might be happening is Construct is seeing this as if Respin is True set it to False right away which will make it always False. Try to add a wait 0.1 seconds right above your Set Respin to False. This should allow the ROdds event to happen before it sets Respin back to False. I am no expert by any means just scrolling through the forums trying to help.

    This did not work, also even if it did I'd be scared of it having the chance of spawning multiple things.

  • No seriously, what am I doing wrong, I feel like this should work to make it all loop until it finds a result but it's simply just not, it's just playing through once and Respin never becomes true.

    Tagged:

  • You do not have permission to view this post

  • You do not have permission to view this post

  • No seriously, it said files successfully uploaded, and then it just did... nothing, literally nothing changed. It's the same old version that I wanted to fix no matter how many times I refresh it.

    Tagged:

  • > So yes, I'm going to have to do on each individual card spawn, change some variable, so it's going to be like 500 events.

    Why do you think it will be 500 events? Do you have each card as a separate object? Even then you can combine them into a family and use a single event:

    Cards On Created: Array push back value Cards.ID

    or something like that.

    However, if you are planning to use the array to store cards, then it should be the other way around - you create cards from the array:

    Array For Each X : Create Card; Card set ID to Array.curValue

    And I have now as of 2 minutes ago, with absolutely 0 tutorials or guides, have taught myself how to use the dictionary to do this since your comment about arrays gave me an idea. God I love the ease of use with this engine sometimes.

Cameron9990's avatar

Cameron9990

Member since 2 Feb, 2019

Twitter
Cameron9990 has 1 followers

Trophy Case

  • 5-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

7/44
How to earn trophies