valkyriegames's Recent Forum Activity

  • Lol only problem with that solution is that I have more than one platform object moving around at a time. So I can't simply enable and disable platforms... ):

  • Hi there,

    I was wondering how I could make platform objects only collide with solids on the same layer. (Note: I might have more than one platform object on the different layers, so simply disabling solids on another layer will not work - the other platform objects will end up falling through). This is because I have a simple platformer game that requires multiple platforms to walk on, one in front of the other in the z direction (simulated by making closer platforms lower (ie with a greater y value). I placed each platform on a separate layer, each as a solid object. Now I tried to create a platform object on the layer closest to the player (ie with the higher y value) but this does not work, because Construct thinks that the player is colliding with the far away platform (lower value of y) because according to y values, the platform object collides with that platform first.

    Is there any way I can make the platform object collide only with solids on the same layer? Or if not, is there any other way I could get this to work? The platforms are actually "rounded" so simply making the platform object change its x or y value will not work.

    Thanks for your help in advance!

    Dengke Sha / ValkyrieGames

  • Ohh really I didn't know there was a TextHeight expression. I will try it out. Thanks! :D

  • Hi Mipey, that's a good idea, except the problem is I can't find out a way to decide how many lines are in the Text. For example, I can count newlines but text wrapping means that more lines are used than there are newline characters. Do you know any easy way to find out the number of lines in a Text object?

    Thanks!

  • Well right now this is what I have:

    <img src="http://www.valkyriegames.net/wip/misc/scrollable_text_required.png" border="0" />

    And the Text portion of the textbox can be seen to the left. Right now after typing enough, the text, because each message is attached to the end, runs past the visible space of the textbox. I was hoping there was a version of the textbox which would let me scroll the text so I can see what's written at the bottom. Preferably the textbox would also shift the text so that the bottom most entry is visible. Will the iScroll plugin help with that?

    Thanks for your help!

  • Haha yes, that would be very handy if Ashley could :D

    The calljs plugin looks very handy! Thanks for the work around! :D

  • Hi septeven! Thanks for the leads. I actually had a look at them before but iScroll isn't what I need and multiline box is a TextBox rather than a Text (I need that portion's background transparent!) The multiline box I think I will be using for the text entry part of the Chat Box though!

  • Hi there,

    I was wondering if anybody would be able to make a scrollable text plugin for me. I need it for a chat box in an mmorpg I'm making with Construct 2, and needed the text to be able to fill up more than it's height worth of text. Would anyone be able to make one for me?

    Any help is much appreciated.

    Thanks!

    Dengke / ValkyrieGames

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi there,

    I was wondering if there was any way I could make a textbox lose focus. There's an action to make it gain focus but none to lose it. I need it so I can make a chat box like those in rpgs where after typing and entering, the player should be able to use his/her arrow keys to move again.

    Thanks,

    Dengke

  • Hi Ashley,

    I ran a profile in Chrome like you suggested, and it appears that pickByUID wasn't run that much at all and only took 0.04% of CPU time. It appears that the bottleneck was actually in a plugin - Rex_SocketIO. I'll see what I can do about that.

    Thanks for your time!

  • I'm also making an (mmo)RPG for the upcoming 64Digits RPG competition. The basic concept is here, which I will be updating real soon for something proper. But I've played around with the technology, and the plugins (including the SocketIO, Chat and Z-sort plugin) work together great to make an mmorpg. I've got a simple prototype going which'll allow up to 200 players/monsters on the screen without straining one CPU too much.

    But yeah, the lack of rpgs is probably because it's one of those things that usually require a lot of time investment and so not many have been developed yet.

  • Hi Ashley, thanks for your reply. Actually you're right, there were some other bottle necks which I've fixed up now and the performance has improved dramatically (I can get about 200 monsters now by straining 1 cpu). However, would it be possible to put the efficiency improvement of Pick by UID on to the development TODO list to be done eventually? Because I think for games which require a large number of enemies, using Pick by UID is almost unavoidable! Thanks Ashley!

valkyriegames's avatar

valkyriegames

Member since 27 Feb, 2012

None one is following valkyriegames yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies