AllanR's Forum Posts

  • jerjamm2

    ok, I have barely started looking, but I can see that the area where you can't click on the "BookMatchPage" is exactly where the "Select" button is on the window that pops up. So, what is happening is that the select button believes that you are clicking it at the same time you are trying to open the window, so it closes it again before you even see it.

    buttons can be clicked on even if they are invisible... but in this case, it is moving the sprite into position (in event 4), and then when it executes event 6, the condition is true so it makes the SelectWrestlerPopup invisible again.

    move event 6 up above event 4, or put a "Wait 0 Seconds" action before you call the popup on event 4.

    (it is the same problem on the other page)

    EDIT: the "Wait 0 Seconds" action tells Construct to execute the actions after the wait at the end of the current tick. Doing this will have event 6 checked before the popup gets moved onto the screen by the delayed event 4.

    EDIT2: I can't make changes to your file since it exceeds the free limits (I use C2). But I am guessing you will have the reverse problem if you move event 6 up above event 4. The Wait 0 Seconds should work, but be aware that when you click the Select button, it will also register the click on the RosterImage2 (although that is immediately reversed by event 6).

    in this case it shouldn't cause trouble, but in other cases it would if clicking on a button made changes you didn't intend to happen... so, you need to think about making buttons active and inactive. There are numerous ways to do that: put the code that gets executed when a button is clicked in a group and make the group active or inactive as needed, or give the buttons an instance variable and check that when they are clicked, or put all buttons in a family, and when there are overlapping buttons use Pick Top to make sure only the button on top gets processed... etc.

    EDIT3: ok, looked a little closer at your code, and I see you effectively do disable the other buttons by checking the popup background image y position...

  • jerjamm2

    there is always a logical explanation - although it can sometimes be very difficult to find! a lot of times a fresh pair of eyes can spot the issue (usually because we have made the same mistake).

    so, it could be an issue with the events, or maybe the collision mask is ok on one frame, but not on another, or one animation works but another doesn't. It also quite often comes down to not having the correct instance "picked".

    it might help to eliminate obsolete code, and then figure out how to upload to dropbox...

  • thenadamgoes

    very similar to what Tyler said...

    https://www.rieperts.com/games/forum/cattest2.c3p

  • Unconnected

    there is a "Transparent" check box under Appearance, in the layer properties panel... if that is what you mean.

    or are you talking about clearing a canvas object?

  • tonylarison

    it is normal for floating point numbers to have tiny variations like that, so rounding whenever you check the global variable is usually necessary.

    the event sheet runs at the games frame rate - normally 60 times a second under ideal conditions.

    that is every 0.0167 seconds. And there is no guarantee that each tick will happen at an exact interval.

    you have to use dt to know how long it has been since the last tick.

    looking for a specific time with that many decimals will not work.

    you can use timers, and other types of triggers to make things happen when required. What are you trying to do? there may be a better way that you haven't considered...

  • redfoc

    I would first select all the turret family except the one doing the targeting, they you can pick nearest...

    https://www.rieperts.com/games/forum/TargetTurret.capx

  • Titan Games

    well, it looks like it is more than a little problem...

    when you click join, then game layout starts, but in preview, it doesn't know it is host at first, so it doesn't create a tank for you.

    clicking the badges button restarts the game layout, and the second time it knows it is the host and does create the tank.

    (I couldn't get a peer to stay connected, but that may require exporting... it has been a while since I played with multiplayer, so I don't know exactly what I am doing).

    if you click the green CreateButton, it calls up the UI, but the tank is behind the spawn2 sprite so you cant see it. (you should move the tank, turret and tracks to the Creator layer.

    You aren't picking any specific tank, so all players tanks would get moved to the spawn2 area...

    then when you click the badges button to go back to the game, it is just restarting the game layout, which is resetting the whole game. So, you should be just hiding the Creator layer, moving the tank back to the game layer and putting it back where it was or at a spawn point...

  • Mayfly

    I saw Ashley reply to someone else saying that in an apk, there is no Browser UI. So, that may be part of the trouble you are having...

    I have seen some other posts recently about people importing html and using a plugin to display that, so that may be easier option.

  • scale outer should be able to do the job.

    set Unbounded Scrolling, and the game area will be centered...

    you can add graphics for wider screens on the left and right if you want to fill the available screen.

    this sample works on my desktop, iPhone and iPad:

    https://www.rieperts.com/games/forum/scaleouter.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • EzekielRage

    ok, the way Cluedo works is you first sort the cards into 3 piles: people, place, and weapon. Take one card from each pile and that goes in an envelope.

    then the remaining cards are shuffled together and dealt out to players. The players then have to use the process of elimination to figure out what is in the envelope.

    so, to replicate that in Construct, you have to make sure you first get one card from each range (and store those in global variables), and then deal out the remaining cards.

    you can't pick the traitor cards after dealing, because you would probably pick cards in different players hands... or you might pick a hand that only has people and places - no weapon.

    I updated my sample to show you how I would do it, for any number of players (between 2 and 6).

    https://www.rieperts.com/games/forum/Deal21Cards.capx

  • the people that made that video don't have infinite zoom either - they use tricks to make it look that way. You have to figure out when to swap from one set of images to lower resolution versions.

    that is what 3d engines do - they only render objects that are close, anything far away uses a less detailed version of the object.

  • EzekielRage

    the array is a global "variable".

    the part where I print out the results shows how to access the values

    PlayerDeck.at(Player#, Card#) will give you any card you want - where player# is a number 0 to 6 representing the player you want, and card# is 0 to 2, for the first, second, or third card.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Nyark Tolegna

    best way to check time is to add Browser, and use javascript...

    https://www.rieperts.com/games/forum/DayNight.c3p