Allardje's Recent Forum Activity

  • I thought i checked it all.. Missed that one!

    Works like a charm thanks a lot!

  • Hi guys,

    I am working on some control functions for my new game but i'm stuck at one part.

    I think it has something to do with the parallax of my layers or something but i tried everything and can't seem to figure it out.

    It's the classic control, a dot inside a circle that can be dragged around to move. In my case i also need the angle of the center dot.

    This works great when using it on the layout size ( in my test file i used 640,640 ) but it stops working like it should once the layout is moved around.

    I got a object with a "scroll to" behavior and once moves the dot is not working anymore. It is like it still takes positions at the original frame layout and not once moved.

    Here is my test project:

    files.fm/u/qf67sfnx

    To test my problem

    1. Start the layout and drag the frame size so the left, top and right border will fit your screen.

    2. Drag the dot in the circle to see how the control works.

    3. Press the ugly "drop" button

    4. Wait for the object to fall down

    5. Try the control dot again > My problem

    Thanks in advance guys!

  • Hey guys i was trying to figure this one out but i can't seem to think of a solution.

    In my game objects move, fly, fall and what not. Some object would be so much better when i could put the "weight" on where it belongs.

    Let say you got hammer. The hammer head is obviously the heaviest part of the hammer. If you would let the hammer fall down with the hammer head up at an slight angle at one point the hammer will turn to the hammer head and keep on falling that way.

    This is the kind of behavior i want to replicate. If i would throw the hammer now with an 90 degree angle it would simply keep on flying with the hammer head left and the hammer handle right. In the real world this wouldn't be possible since it would turn till the heaviest part ( the hammer head ) will be at the bottom. Yay for gravity.

    Is there any solution for this within Construct 3?

    Thanks in advance!

  • Thanks man! Works perfectly.

    As far as the Each Tick concern it's actually the way to go for this project. This variable changes every tick because of other factors in the game. Therefore it's finally allowed for once

  • Hey guys,

    I am working on a game where i need to register the amount of taps.

    The way i use it:

    Every Tick > Set Text "TapAmount" to Global Variable "Taps"

    On tap > MyObject > Substract 1 from Global Variable "Taps"

    Somehow the amount of taps isn't calculated correct and it looks like it can only register one tap each 0.5 second'ish.

    Is there a way to ignore any "cooldown" between taps? If a user can tap 10 times in 1 second i want to substract my variable 10 times.

    If i hit my mouse button very quickly now it will only register like 3 clicks a sec.

    If i slowly tap it will go as; tap, not registering, tap, not registering, tap etc.

    If i quick tap it will go as; tap, not registering, not registering, tap , not registering, not registering, tap.

    Any suggestions? Thanks!

  • Thanks for your reply!

    This works perfect and i want to use this from 0.0001 till 999.9999 But after that i want to start using "K" as thousand, "M" as million, "B" as billion etc.

    This means that in the K is should change from xxx.xxxx to 1.001K

    Any idea what the math on that one is? All it has to do actually is move the dot 3 times to the left.

    Thanks in advance!

  • Hi guys,

    I'm having some issues with my game and it's numbers.

    I want to create a balance that has 4 decimals. So my number start with 0.0000.

    As 1.0000 stands for "1" and 12.3000 stands for "12.3".

    At this moment i use round(N * 10000) / 10000 to show my numbers like 0.001 but i can't fix the fourth 0.

    Also some of my objects have the price of 0.0001 which will not be possible. I can set a instance variable up to 3 decimals. So 0.001 is possible but 0.0001 is not.

    My exact goal is:

    Start out with 0.0001

    Able to display 1.0000 as 1.0000

    Able to display 10.0000 as 10.0000

    Able to display 100.0000 as 100.0000

    Able to display 1000.0000 as 1K

    Able to display 1200.0000 as 1.2K

    Able to display 10000.0000 as 10K

    Able to display 12000.0000 as 12K

    Able to display 100000.0000 as 100K

    Able to display 120000.0000 as 120K

    Able to display 1000000.0000 as 1M

    Able to display 1200000.0000 as 12M

    ETC.

    Any one here able to help me into the right direction?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Jesus christ just as i went back into Construct 3 i found the "Pick top instance" option.

    Now i just have to cross my fingers that i worked perfectly from left to right as it picks is on Z-Index.

  • Hey guys,

    I am working on a isometric game and i kinda bumped into a "tap" issue.

    My whole game is isometric with depth. Meaning that each block will be overlayed with another leaving only a tiny corner left as not overlayed.

    These blocks are interactive and people should be able to select a single block. I am not sure how to code it this way that only the tapped block will be selected.

    As for layering all of my rows are on seperate layers. All numbers and all blocks have the same number as the layer. Not sure if i can do something with that?

    This is how it is build:

    Any one here having suggestions?

    Isometric is really breaking my brain here since there are so many overlaps.

    What it actually should do, in simple terms is: When touch on Block do Action Deny all underlying objects.

    Thanks in advance.

  • woodson Not. Don't bother trying to get it to work because it won't.

    The Facebook plugin only works for HTML5 / Facebook projects ( and maybe some other export options ) but not for iOS or Android.

    For Construct 2 there were some external plugins but I'm afraid we got to wait till some one creates ( or updates ) one for Android / iOS.

    Also hopefully with token option.

  • * BUMP *

    Still looking for a solution.

  • Thanks for your reply.

    That's the one i wanted to try in Construct 3 but then i figured there is no way to get the code of the original Facebook plugin ( to change it ) since they are now in a module manager.

Allardje's avatar

Allardje

Member since 25 Jun, 2013

None one is following Allardje yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies