I am creating a large project in C2. One thing that is bothering me a lot when I pick an object in the list because there are many objects and is very boring and time consuming to choose the object. Of course I can search by name, but I have an idea for you. When in a palette of events for a particular layout, it would be nice to show only the public objects and objects of that layout, so would be much easier to create large projects in C2.
Thanks!
Nice nice! Its a cool plugin but can you make one with more or's ? Or one that we can combine and create more or's expressions. Thanks for reply!
Hello everybody! I have a problem the fact that the C2 not conditional "or". That is, I have a global code that checks whether the user pressed ESC and go back to the previous layout. But I need to insert a button that does this for the iPad type devices. If I had as a condicional "or" was simple but as there has ... I was wondering when you touch the button it simulate pressing the ESC and everything resolved, but the C2 has neither the OR nor an object with keyboard actions .... I do not want to repeat all the conditions. How to solve this?
I hope you understood my question
Thanks a lot dudes its worked both!
I did not know of the existence of "conditional?" It's in the help of expressions?
Another thing, also did not know how to create a local variable in a group. Now that I found that just create a global variable and drag it to the group, logically it becomes "local" heheeh.
> + for "Y" from 0 to 9 ++ for "X" from 0 to 1 > create object at 90+loopindex("X")*90, loopindex("Y")*100 This will create 20 objects in two columns.
> + for "Y" from 0 to 9 ++ for "X" from 0 to 1 > create object at 90+loopindex("X")*90, loopindex("Y")*100
This will create 20 objects in two columns.
Hummm almost there but not yet... Se the picture below:
<img src="http://dl.dropbox.com/u/16702799/temp/Capture.PNG" border="0" />
">
I need each the 40 to change to 180 on each iteraction of the loop.
1-40
2-180
3-40
4-180
But I needt to use this for..each loop above because the size of the array will be variable so I cant use your solution....
Help pls!
Yes my friend, Im from Brasil. But forget the text and se at pseudo code, I replicate this algoritm in C2....
for each element in the array
{
create_a_instance(objany, the_x, 100)
if (the_x == 90) the_x = 180 else the_x = 90
}
Thanks
Try this There's only problem that the Text object can't be rotated with the sprite. You'd have to create another sprite instead and place it over.
Try this
There's only problem that the Text object can't be rotated with the sprite. You'd have to create another sprite instead and place it over.
Exactly! I just discovered by my self but my solution was same as yours! Thanks a lot!
Obs: We need to request the C2 creator to create something like intercepthig the draw event like an after draw so we can draw anything over it without need to create another object to do the work.
I have an array and Im creating a object (sprite) for each element of that array its fine but now I need to swap between to x values in other words I need to create that object in column 90 and the next at column 180 and the next at column 90 etc... How to do this easly with only one loop ?
Example:
the_x = 90
create(the_x, 100)
or something like this
obs: I cant put this information on the array itself because Im using it to store de Text property....
Thanks in advance!
Do you know the text beforehand? If so, create the texts as sprites and use the pin behaviour to pin the relevant text to the relevant box.
The texts will change but they will be created one for each sprite. I will try this "pin" behavior... Thanks/
Edit: Dont work because I create a this sprites and text at run time...
—: No it's a C2 plugin.
Nice plug in friend but its not what Im wanting. What I need is sprite where I can put a text in front of it at run time. Imagine a box with a text in it, I cant create a lot of different sprites with theses text because I will get theses texts from a PHP script and its will change during runtime.
Sprite font? I dont know this plugin, I will search for it. Thanks.
Edit: This is a Construct Classic plugin, Im using C2.
Develop games in your browser. Powerful, performant & highly capable.
See, theses pairs are created at run time. In this moment Im trying to create a loop for each instance of object type A and in this object type A I have a index that represent the nth object B. But I dont know how to get the nth object B. The expression shuld be something like this:
for each OB in Object_Type_A do
x = Object_Type_B[OB.index_reference].x
y = Object_Type_B[OB.index_reference].y
Something like this...
I dont know how to do this. See, I have a lot of objects pairs how to know bind theses pairs? I dont know how to get a individual instance of a type of object and I need this. I was thinking in store this relation on a instance variable and then loop in all objets of that type to see if that object is my "father" and get its x e y, but I dont know how..
Hi! I have a lot of objets of type X and a lot of type Y.
Each object X determines the position of a child object Y. How can I create a father->child bond ? I dont want o use joints because its so slow.
I need to create a game where I have a lot of bricks with a word on them, but I need to put that word at runtime because this words will be read from a server using PHP. What I need is a sprite on wich I could put a fisic behavior and then draw a text over it. Got it?