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 - smartastreacle

#1
The giants battle above my head. Addition it is!  (laugh)

Actually I do have physics, my books are just a bit dusty at the moment.
I changed float Accel = 0.2; to float Accel = 0.005; for added drama.
Just when you thought you were going to win ... 
#2
Yup, that works a treat.  (nod)  Had to fiddle around a bit, I never know where to put things.  (laugh)
#3
Thank you, Mr Wizard. If I understand this, it will work, if I don't, it won't. Let's see if it does ...  ;)
#4
Hiya,

Really simple one. I've looked around but can't quite find the answer.
I have a 'rocket' object that takes off and then explodes at a certain Y. What I want is for the rocket to accelerate after take off.
So far I have the rocket, its movement to Y and its explosion. What I haven't got yet is the acceleration bit. I know this is easy, but it's collapsing my easily challenged brain. Any ideas welcome.

 :)
#5
I tried both and they both work. However, I prefer to keep moving the windmill object in relation to the scene object method because I don't want too many characters: although I have used the character idea before and it worked.  (nod)
(I have edited this because I got it the wrong way round!)
#6
Great stuff both. I will try them and update. Thank you.
#7
Hi,

Let's see if I can explain this well:

I have a country scene object (A) bigger than the display area which I want to move around so it looks like we are flying over it. I have another object (B) which may be a windmill which I wish to animate. Object B starts out of the display area and appears when we move the scene (A). My question is - can I anchor B at coordinates on A so it moves with A and so treat A as a background? For various reasons I can't do a normal background thing. Hope this is clear? Any advice welcome. I see there are changes being made to the forum, hope this question appears.   
#8
It's a tricky world.  (nod)
#9
What a nightmare. I'd put a copy of the game on OneDrive. I didn't know they'd be synced. Anyway, I didn't like it being on OneDrive so I took it back. Yesterday, OneDrive sent me a kind message saying it had deleted files. So I put two and two together and lo - the version on my hard drive had lost its script files, bak file, Heaven knows how many other files!!!!  ??? >:(  So, I restored all the files from the OneDrive bin, made a copy of the game on my hard drive, then pasted the missing files back into the original. The game started! But would not work because of three missing audio files which I reinserted. So, back to normal. After thirty days of deletion files are gone on One Drive. Good job I wasn't on holiday  8-0! At least, that's what I think happened. My 'cure' fixed it anyway. The moral is - don't trust anything written by anyone you don't know. I am now going to disassociate my entire world from OneDrive. Currently I am running the game from the final rooms. Crossing my fingers that I don't have files missing if I start from room 1 for a trial run.
So, yes, Mr. Wizard - your fix would have worked if I had not lost the GlobalScript.asc, amongst many other minor things. I can't believe it.  ;)
#10
Many thanks CW. I have to go to work. I will try this as soon as I can. Is it a potential disaster? I have spent a year coding this ...  >:( Only freaking because I don't have time to deal with it now. It'll ruin my shift.
#11
Hi, bit of a potential mind crusher. Almost finished my game and got an error message when I tried to open and edit - 'Could not find file (path) TwoClickHandler.ash'. Anyone have a solution for this? I closed the game script etc., about an hour ago and just tried to reopen it.  :(
#12
General Discussion / Thank you
Wed 29/12/2021 11:49:19
Forgive me - just a belated Happy Xmas and a future fine New Year to everyone and in particular those tireless experts on here who provide solutions  :-D. Just had a game break through, so I am feeling particularly happy (nuts)  (roll). Please keep this place going.  (nod)
#13
'How on earth are you doing a blocking action (Display) inside rep_exec_always?  ???'  (laugh) No idea, but it happened!

Apart from that, your bold emphasis really hammered it into my head.

I was checking for object 4 not animating, ie, checking it had finished instead of checking for object 5 not animating (at least that was one of the many things I tried). That was the answer. And now it works and I can enjoy the weekend. Brilliant. You are a super star. Thank you.   (nod)

For completeness, this is what I ended up with. Beware the world! They are coming!

Code: ags


function room_RepExec()
{
  ShakeScreenBackground(5, 2, 80); 
}

function repeatedly_execute_always()
{
  if (object[0].Frame == 39){    // alien scout already animating from room after fade in
    object[3].Animate(0, 5, eRepeat, eNoBlock);   ///    siren
    asiren.Play(eAudioPriorityNormal, eRepeat); 
    object[4].Animate(0,  15,  eOnce, eNoBlock);   // army
    }
    if (object[4].Frame == 20){
      object[5].Visible = true;     /// army firing

    if (!object[5].Animating){
      object[5].Animate(0, 10, eRepeat, eNoBlock);
    }
    }
}


#14
Oookay - raising my head with a question again (always find this scary)  8-0
Imagine an industrial complex overrun by aliens. We enter the room (industrial complex), an alien scout spots us, dives back into a shed where it raises the alarm and the alarm brings out a small army of aliens who line up and start shooting at us. That's what I want. Every thing works fine until the shooting bit - that animation stops on the first frame. I put that animation in repexec-always because I thought with enoblocking it would work there whilst with enoblock in standard repexec it did not work. However, it stops on the first frame  (wtf)  Why? Similar situations have been covered elsewhere but I still just do not get it.
Here's the code - when it starts the scout is already animating. What do you think? I know this is going to be something simple again. I shall steel myself.  :-D

Code: ags

function room_RepExec()
{
  ShakeScreenBackground(5, 2, 80); 
}

function repeatedly_execute_always()
{
  if (object[0].Frame == 39){    // alien scout already animating from room after fade in
    object[3].Animate(0, 5, eRepeat, eNoBlock);   ///    siren
    asiren.Play(eAudioPriorityNormal, eRepeat); 
    object[4].Animate(0,  15,  eOnce, eNoBlock);   // army
    }
    if (object[4].Frame == 13){
      object[5].Visible = true;      
      object[5].Animate(0, 10, eOnce, eNoBlock);    // army lining up to fire
      if (object[5].Animating){
        Display("attacking!");       // I know it's animating because this shows
    }
    }
}

#15
Thank you Crimson Wizard - this really helped me too. Especially this - if (!oSCamera.Moving)
It solved all my problems.
#16
I liked this game a lot and found this interesting.

Great. Thanks for this.
#17
The Dungeon Masters - cool. I will take a look.
#18
I love them.  (laugh)

One of my favourites (probably everyone's) is Double Fine Adventure! Schafer really grows on you; very bright and cheerful - but tough! Watched it five times and will watch again. Also Indie Game the Movie: riveting stuff. Atari: Game Over - a wacky love fest. Game Loading I found inspirational in a cool way. Any others?

I really want to see The Art Of The Game but I can't get it anywhere.

I can't recommend Double Fine enough. Great TV dinner viewing.
#19
Fabulous, thank you, eri0o, that worked a treat. Enjoy your coffee.  (nod)
#20
Sorry, the title should be object under object, in my haste I thought the radar scope was a gui.  (roll)
SMF spam blocked by CleanTalk