Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / How To Call Function In A Separate File With Arguments?

Author
Message
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 23rd Apr 2017 22:58
Hi,

How can I call a function in another file with arguments?
like: "ClearScreenWithColor(255,255,255)" which would be in: "Visuals.agc" file?

Thanks!

Jesse
programming is ace
User Banned
Posted: 23rd Apr 2017 23:12
Headache - why would you want to do with just clearscreenwithcolor which is a self built command

Other files are for our own commands

So from your other post, you going with this..

Good luck in future, don't post back If having trouble draw commands - I told you how to do it


blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 23rd Apr 2017 23:15 Edited at: 23rd Apr 2017 23:15
in your main.agc file you can add the line
#include "Visuals.agc"
you will need to add visuals.agc to you project as well
Wilf
Valued Member
17
Years of Service
User Offline
Joined: 1st Jun 2006
Location: Gone to Unity.
Posted: 24th Apr 2017 19:24
Mods can we put Damo The Great (posting as "Programming Is Ace") back on probation please? We don't need the hostile atmosphere his posts create.
BatVink
Moderator
20
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 25th Apr 2017 12:17
JeZxLee, It is not in the power of other forum members to tell you what you can and can't post.
Please carry on posting your questions and follow-ups if you need more help. Hopefully blinkOk has answered your question.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt

Login to post a reply

Server time is: 2024-03-29 14:12:32
Your offset time is: 2024-03-29 14:12:32