LittleStain's Forum Posts

  • If you have a maximum value and a minimum value for the power it would be quite easy..

    Should be something like this:

    set Variable PowerOfShot to : clamp(distance(touch.x,touch.y,ball.x,ball.y),0,maximum)

    radial powerball set frame to : round(24*(PowerOfShot/maximum))

  • You mean something like this?

    Example made with C2 Beta 208

    It uses copies instead of clones, "bullet behaviour" and "wrap behaviour"..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you could explain more or perhaps share a capx of what you are doing it will be easier to help..

    Is there a reason these are cloned objects instead of instances of the same object?

    Would using a family for these objects work?

  • I can't open your html file, but if you explain a little better what it is you'd exactly like, I might be able to help..

  • The touch-object can get the angles of the device, you can use these to make your bullet move..

    From the manual:

    https://www.scirra.com/manual/119/touch

    Touch conditions:

    Compare acceleration

    Compare the current device's motion as its acceleration on each axis in m/s^2 (meters per second per second). The effect of gravity can be included or excluded, but note that some devices only support accelerometer values including the effect of gravity and will always return 0 for acceleration excluding gravity.

    Compare orientation

    Compare the device's current orientation, if the device has a supported inclinometer. Alpha is the compass direction in degrees. Beta is the device front-to-back tilt in degrees (i.e. tilting forwards away from you if holding in front of you). A positive value indicates front tilt and a negative value indicates back tilt. Gamma is the device left-to-right tilt in degrees (i.e. twisting if holding in front of you). A positive value indicates right tilt and a negative value indicates left tilt.

  • Is there any way to move the character through the phone's position?

    Note: I am using the bullet to give movement, what I need and change direction as the User moves the Android device!

    Please use English on this forum, if you can't type in English use http://translate.google.com to translate, like I did in the quote..

  • LittleStain and

    I'm completely lost. The only thing I can see that even mentions 8DM is on the left panel but has nothing about controls other than one with a yes/no option and under events I open keyboard and have little luck after that... like I said. I'm a noob lol. Use to use Gamesalad.

    Open up your event sheet tab and add event..

    To be able to work with keyboard events you should first add a keyboard object to your project..

    It might be of use if you don't know about event sheets and/or events to follow a few tutorials from the tutorial-section of this page to get the hang of things..

  • If you have specific questions about events and or actions I'd be glad to help..

  • The easiest way to check if a variable changes:

    create a second variable called OldVariable

    system compare Variable is not OldVariable

    call function

    set OldVariable to Variable

  • If you want to catch cheaters it would be helpfull to know how they would be able to cheat..

  • Trigger once while true will only trigger once while true..

    Hence it only triggers once..

    I would do the z-sorting on collision with player..

    That will only trigger once if the player collides, but depending on how you've set things up, it could cause issues if you want the player to be able to walk through..

  • > The answer to how to make any kind of game with C2 is divide the game up in wanted conditions and actions..

    >

    > What would you like to happen when and under what circumstances?

    > If some things are still too big, divide them up again and again and again untill it all makes sense..

    >

    thanks and do you know how to make a tycoon or have seen a tutorial on making one?

    It's a lot of work..

    I'd recommend practising making other games with C2 before trying to start a project that big..

    You can make it offcourse, but the way you are asking this question sounds like you haven't much experience..

    When you have trouble creating specific tasks it would be much easier to help..

  • Heres an example of what Im trying to do. The problem is that the for each loop only runs once. So how do i repeat it?

    You have the trigger once condition there, right?

    If you remove it, it might not only trigger once..

    I'm also wondering why you have the else statements, by the way..

    I would just do it like this

    system pick all z-order

    z-order move to layer "infront"

    system pick z-order by comparison z-order.y+z-order.elevation > Playerbase.y

    z-order move to layer "Behind"

  • Question 1

    • local storage is only removed when removing all offline data of your browser and only in browser based games. Clearing your cache will keep the data.

    People who play games online should be aware that clearing all data will remove ALL data..

    Question 2

    • You could always use an online MySQL database and send the info to it through Ajax.

    Question 3 is answered in the manual:

    Non-browser export options like NW.js, Cordova or Windows Store apps are not affected by the user clearing any amount of data from any browser, they also use separate storage.

    Question 4

    • What would you need game center for? If you need it use it, if not not..
  • The answer to how to make any kind of game with C2 is divide the game up in wanted conditions and actions..

    What would you like to happen when and under what circumstances?

    If some things are still too big, divide them up again and again and again untill it all makes sense..