Menu

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.

Show posts Menu

Messages - Blondbraid

#1821
It works now, thank you both for your help! ;-D

I'm also wondering if there are a way to ensure that the +1 only happens once so that the player cannot spam one single hotspot,
how can I disable the function after one use per hotspot?
#1822
Quote from: Crimson Wizard on Mon 07/11/2016 18:34:27

Do you have this "something" variable also declared manually in the global or room script? Because if you created it in Global Variables, you need to remove its declaration from other places.

In other words, you either declare it in script yourself, but do so before using it (setting or getting its value ever in scripts), OR you declare it in Global Variables pane, but then you obviously do not need to declare it in script.
I have removed the declaration from the room script and I'm able to start the game now, but I still don't understand how I should add +1.
#1823
Quote from: Cassiebsg on Mon 07/11/2016 18:14:27
You never answer what line 5 in room1 is. ???
Line 5 in room 1 was
Code: ags
something++;
The same code I added in the post with the error message, should have specified that more.
#1824
Quote from: Crimson Wizard on Mon 07/11/2016 17:43:20
How and where did you declare "something" variable?

You need to have it declared above first use.

Also, it is much easier to create a variable in the Global Variables panel (from project tree), because when you do that in script you need to keep imports/exports in mind if you want to use same variable in multiple rooms.
I just made a int variable in the Global Variables, and set the value to zero. I tested using int something=0; at the start of the first room but then I got:
room1.asc(26): Error (line 26): Already referenced name as import; you must define it before using it
#1825
Quote from: Cassiebsg on Mon 07/11/2016 17:30:06
Maybe copy/pasting the error msg would be a good idea? (nod)
Code: ags
function hHotspot1_Interact()
{
something++;
}

Failed to save room room1.crm; details below
room1.asc(5): Error (line 5): Expected ';'

Here is the error, I'm not sure what's wrong since there is a ; there.
#1826
Quote from: Cassiebsg on Mon 07/11/2016 17:08:07
Code: ags

int something=0; //just to illustrate, as you want this to be a global variable
something++;  // like this? 

I tried writing something++; but just keep getting error messages.
#1827
Quote from: Cassiebsg on Mon 07/11/2016 16:43:55
Uhm... sure, just make an int and default it to zero ... :-D Then add +1 to every thing the player needs to do, and check if int == 10 (or whatever value you want.
Ok, How do I add +1 in the script? I keep getting errors and I don't know how it's supposed to be written...
#1828
Hi!
I want to try and make make a game where the player must first click on a number of items in order to proceed.
Basically, they have to click on a high number of things, and then interact with a character, but if they haven't interacted with enough items, interacting with the character will only lead to a message that they haven't collected enough things.

Is there any form of Global variable I can use to add a number to a meter (invisible to the player) or similar whenever the player interacts with a crucial item,
and the script for character only takes effect once the number is high enough?
#1829
Quote from: Grok on Sun 06/11/2016 13:12:19
You made me do this.
A literal tourist trap?
Awesome first entry! (laugh)
#1830
Quote from: cat on Sun 06/11/2016 09:50:08
Question: Would it be ok to to shrink the guys to half their size? I might be more comfortable with a lower resolution...
Sure, feel free to resize the sprite if you want to do a smaller background!
#1831
We all know how it goes. For eons mankind has endeavored to seek out new frontiers and find new places previously unheard of.
And then the tourists show up.

The challenge here lies in drawing a background
where only your imagination sets the limit,
and you can make it precisely as beautiful as you want...

BUT you have to insert this sprite  into it when you are done:

Which place will the tourists ruin next? An old castle, a south-european city, a tropical paradise, a remote asteroid or something completely different?
#1832
Quote from: Fred Five on Sat 05/11/2016 19:23:05
A new background blitz anytime soon? (laugh)
I'm so sorry, I have been a bit busy the last few weeks. :(
I'll try to come up with a new one this weekend, I promise!
#1833
The time to vote is here, winners receive following trophys:

Contestants are:
1. Girl with a Pearl earring by Babar (original work by Vermeer)
[imgzoom]https://i.imgur.com/NaJ2KMJ.gif[/imgzoom]
2. Croquet by Creamy (original work by James Tissot)

3. American Gothic by NightHawk  (original work by Grant Wood)

4. A Banksy by Mandle (original work by Banksy)
Spoiler


[close]
5. Relativity by Kumpel (original work by M. C. Esher)

6. Self-portrait by Avirosb (original work by Joseph Ducreux)


Vote for the first, second and third place for the entry which you think made the best re-interpretation of a classical artwork.
Voting ends on November 11th.
#1834
If I may, I liked Necrovision and I'm very grateful for it and it would be fun to have Necrovision: Lost Company as well.
#1835
I have been working on this idea for the competition;

The story of a soldier of the german Wehrmacht in WWII who falls in battle and laying lifeless surrounded by an ongoing war,
he starts questioning what led him here and pondering his role in the grand scheme of things...

Now this is just a concept image I threw together, but I hope to make it a real game in time for the deadline.
What do you think? :)
#1836
Don't worry, you can upload your work. I'd be a shame to miss it just because you were confused about the deadline.
#1837
Quote from: MiteWiseacreLives! on Sat 29/10/2016 07:30:22
I think your art style is beautiful, but please revisit that smoke effect.. not up to your standards (looks like my standards  (laugh))
I was trying to evoke the look of old low-budget eastern-European cartoons, but don't worry, it will look different in-game!
Quote from: Danvzare on Sat 29/10/2016 16:49:07
Awesome, great to see the sequel finally announced. :-D
And that animation looks great. Like Anas said, the graphics are improving. (nod)
Thank you, I'm happy to hear this!
Quote from: CrashPL on Mon 31/10/2016 08:13:12
Ivan and Olga are back? Aw yeah, not that's some great news right here. :D Definitely putting this one on my "can't wait to try it" list. :)

QuoteTheir mission will be to destroy all resources and burn the village before the enemy gets a chance to destroy all resources and burn the village...

That's actually a very realistic goal, considering the WWII times and the USSR general methods and tactics. ;) For the Motherland!
Great to see you excited for my game!
I did take a lot of inspiration from real warfare, but a lot of fictional heroes also tend to leave a trail of destruction in their wake. Olga and Ivan simply have to destroy all the things in their surroundings deliberately rather than incidentally.

Anyway, here is a new screenshot:
#1838
Just a friendly reminder to everyone working on their sprites that the deadline is tomorrow!
#1839
Quote from: JudasFm on Thu 03/11/2016 06:10:29
Quote from: Sinitrena on Wed 02/11/2016 20:59:27I espescilly liked that, while a reader should pick up on the fact that Clara is a ghost or some kind of supernatural being, it is not entirely clear whether she is good or evil.

Dang it! I knew there was something else I meant to mention! Votes notwithstanding, I agree; that was a very good touch on Blondbraid's part :D
Great to hear that you liked my story! The fun thing is, that aspect was rather incidental, as I was trying to finish the story before the deadline and didn't get time to elaborate more on the characters. All in all, I'm happy it turned out good and I wish to congratulate Baron, it will be fun to see what's the next theme will be! ;-D
#1840
Quote from: Amayirot Akago on Wed 02/11/2016 15:54:03
Quote from: RulesYou are not allowed to use any material created before the competition.
Does this rule extend to taking previously existing materials and editing them, like changing a pre-existing sprite into a different character?
Can you use characters and stories you made up before as long as you make new sprites and graphics for them?
(Was thinking of having a character from a previous game I made show up, but with new sprites...)
SMF spam blocked by CleanTalk