Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Vaibhav Sangwan

Pages: 1 ... 7 8 9 10 11
Oh,yes there is.
How could I not know it? :( >:(

Ask a Question / Re: Make something do something once
« on: February 28, 2018, 09:45:54 pm »
In the "if" block.add a __and__ block.
In first,add the condition:-if actor 2 is 250 pixels away from actor 1 and in second,add the condition that current animation for actor1 is not equal to the animation to which you want to change.
See the image below.

There is not a block for just last created actor or self(if there is,then I don't know about it).
I used to set an actor attribute and then add it to the list.

Ask a Question / Re: Blade moving in 4 directions
« on: February 28, 2018, 02:33:16 am »
Add that code in when created  also.

Ask a Question / Re: Blade moving in 4 directions
« on: February 28, 2018, 01:28:39 am »
There are many ways to make an infinite loop
One is to add the block:-
repeat until 0=1(or any other value except 0)
But if you want it for moving blades.
You should add all that code in do every 4 sec event(not the one underflow>time ).

Ask a Question / Re: Blade moving in 4 directions
« on: February 28, 2018, 12:26:20 am »
add the second block in "do after 1 sec".
third in "do after 2 sec".
and fourth in "do after 3 sec".

Ask a Question / Re: Game crashes on Windows 10?
« on: February 27, 2018, 07:46:57 pm »
Perhaps I need to find more information on this person's system?
I'm currently not running on Windows 10,so I can't test it.So,I suggest you to try your game in windows 10 yourself(if you haven't).

You want to run some code for bullets after you create them,right?
An easy way to do this is to add a "do after" block in when created in actor events

Ask a Question / Re: Blade moving in 4 directions
« on: February 27, 2018, 07:22:11 am »
Use the block under block under Actors>Tweening
slide actor by x:   y:   over sec:    using None

To move upwards set x to 0 and y to -10
to move to right     set x to 10 and y to 0
to move downwards set x to 0 and y to 10
to move to left set x to -10 and y to 0

Ask a Question / Re: Spikes lag
« on: February 27, 2018, 12:46:18 am »
This usually happens when someone add a code in event "when updating",which was supposed to  run once  or periodically.
If you have added such code in event,that code will run every frame of your game.

Thanks Jeffery,
It solved my problem.
And thanks to coleislazy too, for making such a useful extension.
Although I had some problem implementing this at first.
The problem was that I created line between actor centers.
So,when I used the "first actor on line" code,it gave me the values of actors.
But at last,I managed to create lines in a way that they don't intersect with actors.

Hi everyone :)

I am currently making a 2-d shooter game and I need some help.
Okay, so there are many enemy soldiers roaming in the scene.
I want a way by which if an enemy comes in a region of 300 pixels(I have created a region named "Region around actor" which follows my player) around my player,
it continuously checks if there is any tile between the his center and my player's center.
If there isn't, then add it to a list named "active enemies"

Any ideas?
It'll be really helpful

Ask a Question / Re: Attributes, Actor Attribute, Get Attribute confusion
« on: February 25, 2018, 07:42:37 pm »
Why don't you try making a scene behavior?
That way,you don't have to create  attributes of xPos.
Just create 2 actor attributes for monkey and crocodile.
Then, you can just use "x of crocodile" block for getting values of crocodile's X-Position in scene.

Ask a Question / Re: Calculating a value based upon a percentage
« on: February 25, 2018, 07:27:43 pm »
Vaibhav, how would that looks with the blocks?

Today,I  am also having the same problem. :'(

I have still files of scenes in my game's scenes folder.
Icon of my new scenes that I created for testing is still showing the layout of those scenes.
Any idea what is going on and what should I do to get them back?

Pages: 1 ... 7 8 9 10 11