Jase00's Recent Forum Activity

  • You've taken an interesting approach at having timers on multiple objects. I can't offer any help, but I can offer how I would do it myself.

    ONLY have the instance variable "LifeTime", which gets set to a random number still when it is created, (int(random(1,6))

    And then have an event, that constantly DECREASES the LifeTime variable of the baubles by "dt" (which will make it go down by 1 every second). You may or may not need a "ForEach Baubles" event here, probably not though!

    And then have another separate event, that "Compares instance variable" of the baubles, checking if it's =<0, then "play Sheep sound", destroy, ect.

    I hope this helps somehow!

  • Sure, you didn't develop the MMF2 Sonic Worlds, but "Porting Sonic Worlds to Construct 2" is what is yours. Your baby, if you will.

    Also, you HAVE directly ported it, and it works almost perfectly; just a few bugs here and there and this performance issue. But other than that, you've ported it very well. It's impressive, and it's unfortunate that think it's a futile effort.

    I think the one inevitable problem is "curved platforms", as C2 handles collisions via polygon, and not per-pixel; but it's still totally feasible.

    I hope you continue to work on it! I'll see if I can apply what I know to optimise it in my free time. Kudos on what you've managed to do so far!

  • Happens here too!

  • Candescence It's easier than you'd think to make multiplayer. You could have as many different players as you desire using only one set of sensors (each player would have their own "Player" sensor, but all the slopes, walls, ceiling censors). In the most simplist way, it would literally require a "ForEach" loop that sends a function that does all the movement events, with a function parameter of the Player's UID. Sure there might be a hickup or two, but trust me, it's very straight forwards (a lot more straightforward than optimisation stuff!).

    Listen to tulamide! Don't abandon this, you've managed to get very far already, it's further than I ever got in my few attempts of making a "Sonic" engine in C2 (I have tried a few times and only end up making a ball that can walk up slopes and stick to them using trig, then I gave up lol). If you're stuck, just keep asking questions on here, people here love to help others :P

  • I remember using Sonic Worlds a lot when I used to use MMF2!

    Looking at this capx reminds me EXACTLY of the layout of the events from the MMF2 Sonic Worlds.

    Not that I'm exactly genius on all of this, but I can see a lot of events that are very badly optimised (the same things jayderyu picked up on).

    Mostly avoid repeated Collision checks. I know it's difficult to sparse collisions, but some checks aren't necessary, such as, whilst Sonic is moving right (XSpeed>0), it's not really needed to check the "Left" sensor if it's overlapping a wall (Sure, it could create problems such as if a moving wall was coming towards sonic whilst he's moving right slowly, it may not push him, but I'm thinking "Basic" Sonic engine :P )

    "Every Tick" with lots of math involving Sin and Cos, probably is a bit overly taxing on the CPU (Even general calculators lag for seconds when you do multiple sin calculations in one go), I guess to avoid that though is a bit complicated, as Sonic needs to detect stuff constantly as he's running.

    I haven't got time to analyse or write any more right now :( but I hope I gave some sort of useful insight!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Very inspiring! Thanks for sharing this!

  • It would be a simple fix I reckon. Add a new event sheet called "Player Control", put your group in there, then wherever you need your "Player Control" group pasted, just include the event sheet instead of pasting the group. Don't you ever find yourself editing each group when you decide to update the Player Control events? Doing this method causes you to only have to edit the events once :P

    I used to come from a similar background of copypasting stuff like that, but trust me, once you adapt to this, you'll never want to go back!

  • Before the action "Set time scale to 1.0", put a "Wait 0" action. :)

  • Well, say for example you're using the animation "Attack", in which, you have events prepared for damaging, such as;

    On Collisions Player + Enemy

    +Is "Attack" animation playing

    +Is Frame 5 playing

    • Do damage

    Then making "Cancelling" would be a breeze! Simply detect the jump ("Has Space key been pressed?", "On Jump" in platform behaviour), set animation to "Jump", thus cancelling the rest of the Attack animation!

  • The "bumped off construct server" thing happens a lot around here, I've grown used to it :P

    And well, you don't need to install any software for Dropbox, googledrive, ect. Signing up for one and using their web services, you can upload a file and get a link. (I use dropbox, you could sign up for that, login on their website, go into your "Public" folder, upload a file, then right click the file to get a "Public link".) :)

  • Maybe it's the web browser you are previewing in, trying to create the right-click menu. Try previewing in a different browser :P

  • Oh, I see what the problem is now! I tried the Alt code (Alt+013) for newline directly in the editor but that didn't work. I don't think this will really be rectifiable.

    If I had to give a piece of advice when working with large amounts of text, it would be to write it all in a .txt and load it into the "Files" section of your project and call on it when you need to read text (I haven't really done this before, but Ashley has advised it on people before when handling text)

    Either that, or have a ' Start Of Layout> Set Variable 1 to "firstline"&newline&"secondline" '.

    Hope I was of help!

Jase00's avatar

Jase00

Member since 5 Jan, 2012

Twitter
Jase00 has 11 followers

Trophy Case

  • 12-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • 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
  • x15
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x7
    Lightning Draw First person to up-vote a new Construct 3 release
  • x7
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

26/44
How to earn trophies