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 ... 8 9 10 11
136
Ask a Question / Re: Calculating a value based upon a percentage
« on: February 24, 2018, 08:21:02 pm »
Let's say the percentage is 25%, how do I convert that into a number between the numbers above?
48+(416-48)*25/100
Hey Jeffery,I want to remind you to do
48 +(416-48)*25/100

not
(48+416-48)*25/100

I am not sure but this might be the problem.

137
Ask a Question / Re: topdown game. help.
« on: February 24, 2018, 12:21:33 am »
This is a sample game merrak made to demonstrate how to apply the pathfinding.
http://community.stencyl.com/index.php?action=dlattach;topic=45313.0;attach=54173

138
Ask a Question / Re: How to Make the Enemy Look to the Player?
« on: February 23, 2018, 08:17:28 pm »
create an actor type attribute for enemy instead of actor type and in when updating,add:-

Inside the for each actor of type block(found under Scenes>Actors),put:-


set x to x center of "Player" attribute -x center of actor of type
set y to y center of "Player" attribute -y center of actor of type
point actor of type towards [atan2(y:y  x:x)] as degrees.


139
Ask a Question / Re: How to Make the Enemy Look to the Player?
« on: February 23, 2018, 08:16:11 am »
Create a scene behavior.
Make two actor attributes:-Enemy and Player.
Make the attributes x and y as you created in the image above.
In when updating,insert:-
set x to x center of "Player" attribute -x center of "Enemy" attribute
set y to y center of "Player" attribute -y center of "Enemy" attribute
point "Enemy" attribute towards [atan2(y:y  x:x)] as degrees.




And attach the scene behavior to your scene and choose both the actors. :)

140
Ask a Question / Re: Converting .wav to .mp3 without a delay
« on: February 23, 2018, 02:28:57 am »
No,I mean it is not required in ubuntu.
See these:-
https://www.audacityteam.org/download/linux/
there is no optional download reqired in this.

but for windows:-
https://www.audacityteam.org/download/windows/

141
Any idea,when will stencylforge be updated?

142
Honestly speaking,
The code is so long and complicated due to so many attributes(some of which are undefined) that it is difficult for a newbie like me to find the error.  :P   :)

143
Ask a Question / Re: Converting .wav to .mp3 without a delay
« on: February 23, 2018, 12:38:44 am »
It is not installed but you don't have to install LAME encoder in ubuntu.

144
Yes it gave me also the same error.

145
Ask a Question / Re: Converting .wav to .mp3 without a delay
« on: February 22, 2018, 03:46:19 am »
Nah, I gave it a try, but for me it gave no benefit.

146
iPhone / iPad / Android / Re: RETRO REDUX (Untitled)
« on: February 21, 2018, 09:00:39 pm »
I liked your game. :) :)
Although,I didn't complete all rooms but ,I think that it is quite challanging to complete all rooms.

Are you still working on it or is it completed?

147
Ask a Question / Re: Movement Animations
« on: February 21, 2018, 12:32:04 am »
1.Create a number attribute "Time".
2.In when updating,
    add:-do every 0.1 seconds tab ,and in that insert increment "Time" by 0.1 found under Numbers&Text.
3.In another when updating add:-
     If "Time"<=0.1
     switch animation to "tilt-half" animation.
     otherwise
      switch animation to "tilt-full" animation
4.Put the above code in:-
     If "mouse is down block".

148
Ask a Question / Re: Generating an Actor but with different Animations Each
« on: February 20, 2018, 11:59:30 pm »
With those two sets of code,
I made this.
You can see that there are 7 animations of actor switching randomly each time you play it.
After all the animations it just stops switching animations.

Example Game

I think,you have made all of your code very complex

149
Journals / Re: HOUSE KEEPER Turn based RPG (WIP)
« on: February 20, 2018, 10:49:02 pm »
The movement controls are very smooth and the tile based movement is a very good idea.
But the  battle thing needs to be worked upon.
I would like to play the finished game.

150
Ask a Question / Re: Generating an Actor but with different Animations Each
« on: February 20, 2018, 09:48:28 pm »
Do not delete items.
Instead set the value of #randomiser item from list to negative and add a repeat until looping your code to get the randomiser value more than or equal to zero.
You can see in IMAGE 2 to see how I did it.

Pages: 1 ... 8 9 10 11