oosyrag's Recent Forum Activity

  • Here is an example where the particle angle is always set to the sprite angle.

    https://www.dropbox.com/s/wdoruss24f3f9 ... .capx?dl=0

  • Well... If your world is procedurally generated, your procedural algorithm should probably populate your array as you go.

    If you want to load an array you create manually, you can create it in your spreadsheet program of choice, save as .csv, import that with the AJAX object, then use tokenat to break it up and load it into your array.

    If you're looking for an algorithm to procedurally generate terrain... I'm not much help there but I'm sure there are a ton of tutorials and examples online.

    JSON strings are created from already-populated arrays - you can use Array.asJson to get the contents of the array all in one string, in JSON format. You can then save this string and load it back into an array later.

  • I meant the line of sight behavior approach should be sufficient, also not too heavy unless you really have tons of objects, so I wanted to see how badly it was lagging and if there was anything else causing the lag.

  • Right, forgot about timescale too.

    I found this for you - https://www.scirra.com/tutorials/67/del ... dependence

    [quote:y0tcu69y]Pausing

    You can set the time scale to 0. This stops all motion. It's an easy way to pause the game. Set it back to 1 and the game will resume.

    You might notice you can still do things like shoot using the game controls. You can get around that by putting your main game events in a group, and activating/deactivating that group as you pause and unpause.

    It's also a good way to test you have used dt correctly. If you have used it correctly, setting the time scale to 0 will stop everything in the game. If you have not used it correctly, some objects might continue to move, even though the game is supposed to be paused! In that case you can check how those objects are moved, and make sure you are using dt properly.

  • https://www.scirra.com/manual/110/browser

    [quote:22e56rey]Open URL in new window

    Navigate to a given URL in a new window (or tab if the browser settings override). This continues to run the HTML5 game in the old window or tab.

    edit: ninja'd ><

    It should work. Is your URL in quotes?

    Browser - Go to "http://www.google.com" in a new window ("NewWindow") [/code:22e56rey]
    is how it shows up on my event sheet, and it works ok.
  • You're right, I'm not so sure it would either.

    Remember behaviors are just shortcuts - everything a behavior does for you you can actually recreate with events. They might have some limitations, so if you want a more complex behavior, you may need to create it yourself with events.

  • It really is up to you. General tip is to not try to put too much information all in the same array, or it may get harder to manipulate/access the information you want. But other than that use whatever organization system makes sense to you.

    A big consideration for me is usually that you can only use IndexOf on the X axis of any given array.

  • Quick way I can think of is use "On collision with another object" - set Sonic's angle as the same angle as that object.

  • Any clue what index right stick axes are?

    I haven't used this object myself yet, but you could test this pretty quickly. I've made a capx for you. I hope it works, I can't check myself as I don't have a gamepad hooked up.

    https://www.dropbox.com/s/8pes8gkyav87f ... .capx?dl=0

    The reason it probably isn't specified is because there are many different gamepads out there, each with different amounts of input axes/mappings.

  • It would be hard for me to give a specific answer without seeing your situation. The answer would be use the one that best fits your needs!

    You said you were already using force for your normal movements. I assume you would apply them on the ball. Either apply more in the same direction you already are applying for when you're going uphill, or maybe apply at an angle depending on the slope of your hill to be more efficient.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Your method seems OK. Do you have a example capx?

  • Hi, I don't see anything wrong. What is your question?

oosyrag's avatar

oosyrag

Online Now

Member since 20 Feb, 2013
Last online 25 Nov, 2024

Twitter
oosyrag has 38 followers

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

21/44
How to earn trophies