EncryptedCow's Recent Forum Activity

  • newt

    I don't want to just destroy every platform when the player touches it. Each one can do different things depending on what trigger equals. So most of them will = 0 meaning it wont do anything on contact. 1 means it will delete when touched, 2 would make it disappea for 5 seconds for example. I get now that functions wont save on events and will just over complicate it. I'm just going to make sub events of on collision.

  • newt

    It's not just destroying that I'll be doing. I plan on having a bunch of functions that do different things depending on the trigger variable. I guess I could just have trigger = 1, trigger = 2, ... subevents. In my head this seemed like it would reduce the amount of events I would be using. (I have the free version so I have to watch my events)

  • zatyka

    I can't test it out right now but that makes perfect sense. Thanks!

  • So I have a whole bunch of platform objects. They all have an instance variable called "trigger" which I change to different values to achieve different things. Right now I do

    -Player: On Colission with platform

    -- Platform.trigger != 0

    -> call function "te_" & platform.trigger

    • On function "te_1"

    -> platform destroy

    It's calling the function perfectly fine, but is deleting every platform instead of the one the player collided with. I know this has something to do with it not passing the platforms id to the function so it knows the specific one to delete. But how do I make it so it knows which one to do?

    Sorry if it's confusing, I'm not the best at explaining things.

  • Theres also this one for free. I'm checking it out right now to see how good it is.

  • Oh man. I wish I could do something like this. :(

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you turn on snap to grid and show grid, you can see where the objects will snap to.

  • Right click the application in your steam library -> Click Properties -> Click Betas tab -> Opt into the beta release by choosing "Beta - Construct 2 beta updates" in the dropdown list.

  • You arent really giving enough info. What behavior are your enemies using? Also, distance() will return the amount of pixels between object1 and object2 so you're on the right track.

  • This is incredible. A capx would be awesome. ;)

  • There isn't any way for us to help you without a capx.

  • spongehammer

    I suppose I could do that, but how would I know the difference between it being in the air or on the ground. And how could I decide if its rolling on a flat surface or if its going down a hill?

EncryptedCow's avatar

EncryptedCow

Member since 23 Oct, 2012

None one is following EncryptedCow yet!

Connect with EncryptedCow

Trophy Case

  • 12-Year Club
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

15/44
How to earn trophies