Tokinsom's Recent Forum Activity

  • I'm using the following expression to get a 16x16 cursor to follow my mouse in a snap-to fashion...

    cursor.x= int(mousex/16)*16

    cursor.y= int(mousey/16)*16

    It works fine and all, but the cursor tends to 'drag' behind a good bit when quickly moving the mouse. Is there any way to fix that?

  • Probably. I always do this to 'turn off' effects as a lot of them glitch up get pasted into the bg or something, which gets really annoying.

    And yeah, that's Psy-Crow. He IS from earthworm jim

  • All you need to do is close every layout, then re-open them. All effects will then be 'turned off' in the layout editor.

  • Just use *

    e.g.

    object.value('my_val') * 1.5[/code:190wisyh]
    
    You can set the value or add to the value however you want.
  • Input system plugin, yo. It's magical.

  • Ok so it is the solid thing that is the problem. Can you not leave the enemies with the solid attribute on the whole time?

    The enemies and the player both use the platform behavior, so if I make them solids when they aren't frozen/deactivated, they will push the player around.

    Also, I'm making them solid when frozen so 1. They can be used as solid platforms and 2. so they don't hurt you.

    > Thought about that, but then it would also hurt any other enemies (namely ones that don't interact with solids) overlapping that solid object.

    >

    How about that: instead overlapping use x,y comparsion, e.g.

    -enemy is frozen -> create solid at enemy's XY, disable collision mask for enemy

    -solid recieves damage

    -enemy's XY equal solid's XY -> substract enemy's HP

    Worked pretty well when I tried it earlier, but it brought up another problem. My player is using a melee weapon, so if the solid is created over the enemy while the player is still attacking, it's instantly destroyed (along with the enemy). I tried implementing a sort of limit, so the solid could only be hit a short time after it was created, but it was kinda buggy.

    Thanks for the help so far. Time for more experimenting.

  • Thought about that, but then it would also hurt any other enemies (namely ones that don't interact with solids) overlapping that solid object. I could work around that by giving the solid object a value and setting it to the frozen enemy's UID, then comparing it so it only affects that enemy. Or I could use the object pairer..maybe even containers. Still..It just seems tacky. Guess I don't have a choice o.o

    edit: Yeah that's not working out so well.

  • I'm trying to add the ability to freeze enemies, deactivating all of their movements and turning them into solids, but add/remove attribute is all buggy and I'm having a hard time doing this.

    Instead of using add/remove attribute, I tried creating a solid object over the frozen enemy and changing it's size to that of the enemy's. Problem is, most of the enemies use the platform behavior and end up being 'pushed out' of the solid object even though it's platform behavior is deactivated (bug?). Setting the enemy's collision mode to 'none' will fix this, but you need to be able to attack it when it's frozen, so I can't do that.

    I thought of some other workarounds, but they don't seem like they would be very..stable.

    Any ideas?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I included an e-mail in the Minitroid Demo's readme for people to send bug reports. Seems a lot of people are getting the exact same crash/error, but I have no idea what's causing it.

    Runtime error

    (X) Failed to load plugin

    C:\Users\blah\AppData\Local\Temp\capD141.tmp\11.csx (126)

    It's funny because I tested it on like 8 different computers and it was fine. The *only* thing I'm aware of that would cause a crash is removing the controlconfig.cfg file that the input system plugin uses. I asked a few people and they said they hadn't touched any of the files, and controlconfig.cfg was right there.

    People have reported the same error with the control config I made, which is a separate application. I also find that strange, as the config doesn't load controlconfig.cfg, it only writes data in it.

    I have a feeling the input system plugin itself is causing the crashes. If I recall correctly it's not finished, so.

    Anyway, what do you think?

    Also, for some reason the music isn't playing for a very small number of people. It's loaded externally, simple as:

    +Start Of Layout

    -Create Xaudio2

    +Global('Song') = "Song1"

    +Trigger Once

    -Play Music From File: Apppath & "Music\Song1.mp3"

    Any idea what that's about?

    Thanks for any help.

  • You have 4 health bars and 4 rocket bars, right?

    Yeah, including the ones you start with. I was going to add a '% of items collected', as well as completion time, but I got kinda lazy near the end there

  • lol that happened to a friend of mine a while back. Said she changed all of her video card settings from performance to quality and it worked. It's worth a shot :T

  • HA!

    Unfortunately there's no Miniworm Jim in the works, although that does sound like a fantastic idea :3

Tokinsom's avatar

Tokinsom

Member since 6 Jun, 2010

Twitter
Tokinsom has 11 followers

Connect with Tokinsom

Trophy Case

  • 14-Year Club
  • Entrepreneur Sold something in the asset store
  • 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
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies