DozeMaster's Forum Posts

  • Didn't downloaded the file however the bellow is my solution.

    a simple way to achieve this, would be: having 2 instance_variables on the player one that detects if he is_moving, and one that keeps a value amount let's say timeWait=60.

    (make sure to add the keyboard key is not pressed condition/s for each user keystroke that can be inputed)

    (0 false 1 true - if user is pressing a key it means the player is moving then the value changes to 1, if there is no user input then value changes back to 0)

    then you can reset the timewait by saying

    that way it always resets when the user presses a button.

    that should work, is not the most elegant but should give you and idea on how the mechanics should work, and then apply and tweak them based on already used behaviors, or code you have.

  • if you want the font size to increment based on how many letters or characters are in the text field

    you can simply use, len(Text.Text) that gives u the number of characters and then divide or multiply those by 2 or 4 based on how much you want the font to increase and set the resulting value as the new font.size.

    and there are some useful stuff inside here also that might help you, text-character-width-in-pixels

  • condition

    distance(car.x,car.y,parkinglot.x,parkinglot.y) =< 20

    abs(car.speed) =< 5

    trigger once

    action

    parkinglot.set_animationframe to 1 or the red color frame number.

  • make a variable on him and call it _jump lets say

    then if jump is 0 he can jump.

    if he is jumping set the value to 1

    when he lands reset the value back to 0.

    that should work, depends how you make him jump now, the above won't work mid air with the platform behavior default jump input. you will have to push player on Axes Y by some amount.

  • I'm making a game about light and i want the enemies to be repelled by the light when they overlap it. Any ideas how i might do this?

    depends how you are using the enemy movement,

    if you move the enemies by giving them a speed value (using a variable) then u can reverse that value (if is a negative value make it positive if its a positive value make it negative) and it would change direction.

    mainly can be achieve by using a global variable call it speed, and set the object enemy movement speed to that variable every time it needs to, or you change that value.

  • Thanks! :)

    Did you beat it? What's your time?

    nah, i gave up 10 minutes in, couldn't take it anymore ... was always dying xD i got unlucky on the keyboard commands broken thing, it always got me disabled when i was cluttered with asteroids...

    and sadly... i never finished the first stage .... im a bad player ... i know ... ^_^

  • Nah, that vid is plain public. I mean when i do "open url" call from my app in Chrome ()or any web preview - it works just fine (probably should have mention that). The error occurs only in NW.js runs.

    make sure u give the proper access to internet to the .exe — is there a special settings to provide to NW considering the internet access? For example i do ajax calls to save statistics to the server via https and it works just fine...

    i just searched a youtube permission for nw.js as youtube is still running on flash, and nw.js being desktop acts like its own browser and the chrome or what browser is using by default nw.js doesn't cache your permission preferences, and they never ask you to enable flash or give access to media and stuff.

    similar to your problem is this nw.js youtube

    then there is this im not sure how this might help you but might be a nw.js problem from what the guy is saying nw.js incompatible chrome required .dll

  • It's not just that - there was also a lot of abuse happening by PM, and it's difficult to moderate (especially since I don't really want to get in to reading people's private messages)

    i totally get the reasons behind it, but using a 3rd party that should fix it right? as the abuse wouldn't actually happen on the scirra forum, but on the 3rd party service platform atleast that's how i see it.

    anyway would be nice to have some sort of contact info sharing that is as quick and more private than a share on the forum posts.

  • But what is this? self.x-5. The zombies self minus 5 pixels on the horizontal? Not sure why this works.

    Thanks again. :-)

    self.x - 5 is basically the zombies current position and you subtract 5 from that making him change position again until it reaches the player.x (current position) + or - the zombie.width*2 that acts like a margin so they don't overlap.

    now the 5 i put it there so its moving a bit faster, but u can adjust the 5 value to whatever u need, you can make a global variable and call it zombie speed and give it a value and replace the 5 with that variable. or if you have different zombies that require different speeds, you can make a localvariable on each zombie sprite, and give them different values, and then say

    self.x - self.zombiespeed or self.x + self.zombiespeed

    using variables is gonna be easier for you to manage the changes of values later on when events start piling up, so you don't have to go through each event, condition, action to look at that value 5 and say ok where is it now? XD

    also what is distance> player.x and distance<player.x? is that the zombies X?

  • Hi Bud,

    Thank you for explaining that. So it kinda of acts similar to a variable.I am dreading get into the math part of construct. But I am learning from you tube and you guys!

    Cheers corp!

    yes,no problem, for more information how distance is working check this bit distance formula

    it might have a different approach on Construct depends on how Ashley designed it, but in essence it should be the same.

    also, you remember that old annoying math teacher telling you "math is the key?" i didn't believe him either .... now im sorry xD struggling to remember what he teached ...

  • I think the solution for private messaging would be best kept off site - in today's GDPR focused world a private messaging platform raises all kinds of data protection questions that you'd need a lawyer and a stiff drink to field properly, and that simply isn't conducive for a software house.

    Having an email field on your profile that only appears to users that your following could be a workaround.

    i think the fear of GDPR enforcers is to extreme this days because of the facebook scandal, lets face it we aren't the facebook or google community we are barely ~50,000 users at best, 90% of which aren't even on the forum, and only 10% are actually using the forums, and god knows what amount of the users are actually filling real informations, there is no actual validating contact information processor on the data provided, is just a hand held book of who someone claims to be at what address, that isn't a real data processing now.... and for the credit card information ... obviously there is a card processor somewhere and again no GDPR there also.

    i agree with you on the workaround, because the GDPR compliance of the 3rd party pm service wouldn't be so much different than the gravatar 3rd party feature the website is already using, which i don't see any gdpr on that.

  • I submitted my entry, the game is called Damaged Controls

    that is actually a dope game dop2000 lmao ^_^

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey there!

    Can one LERP master volume from -99db to 0 db in a second or two? In that case whats the formula?

    Or is there a better idea for this?

    Thanks! ^_^

    i am no LERP master volume but atleast this one thing i know ^_^...

    lerp(a to b in ticks/s) or lerp(a,b,x) lerp(0,-99,dt) lerp(-99,0,dt) fade out , fade in ... young obi kenobi.

    however i prefer the variable way, lerp sometimes snaps towards the end and i don't like that.

    also not sure if the volume has changed on decibels, but i think in Construct volume muted is -35db or nothing can be heard at that point, doing -99 is kinda pointless. unless again if that changed and you can actually hear stuff at -90db then -99db is a good value call.

    Edited: also above me there is a post ... with the new feature in C3 ... that might solve it for you, if you don't want any custom fade in fade out.

  • You are right about the part where the system treats multiple instances as one object, and when you try to access some property it takes it from the first instance etc. But I'm sure you are aware that "Compare instance variable" is very often used to pick or "filter out" instances. If you have multiple instances, some with id=0 and some with id=1, you can use this event to pick only instances with the id=1 for example.

    It has the same effect as using System event "Pick by evaluate" or "Pick by comparison". And actually you can change my capx to use "System Pick by evaluate Sprite.id=choose(0,1)" and it will have the same problem. The engine will loop through each instance, each time comparing with a different result of choose() expression.

    This seems wrong to me, because it works differently in SQL for example. If you do "SELECT * FROM table WHERE code=int(rand()*2)", this will select records with only one value in code field, either with 0 or 1, not a mix of both.

    oh that i am aware of it, i always use the

    , i never used choose() in that sort of pick cause of the original issue with multiple instances...

    ah now i see why you are using it like that ...

  • one thing i loved about the old forum, and it wasnt really the colors, or the lightning fast snail loading time, but the PM messaging, and i know is a bit of a big management work behind it, cause u need to keep track of who does what and whatever, but what if ... you don't have to do all that?

    and you just use a service like disqus but with a PM service, that can be used only for PM service only as we don't need a comment supported by disqus we already have it right? but the pm part is a bit of hackle and i get it...

    here is my pitch

    Tom

    Edited: i know might sound offensive, its just the name of the app... the [ at ]and the link made me read it in a bad way i hope it doesn't do that for anyone who reads this....

    MUUT < just the send a private message part in the tutorial near the profile that's it. the rest of forum/blogs can be the same. but that pm thing is a must... im tired of putting my email with or without square brackets on the forum, and getting bombarded by spam assassins, and people from russia trying to hack my emails... like "that's where he keeps he's nudes!"

    please consider it, i think a lot of users would appreciate it, atleast temporarily until there is time for forum development or expansion.